FreeMusicNinja / api.freemusic.ninja

Django-powered API for Free Music Ninja
http://api.freemusic.ninja/
BSD 3-Clause "New" or "Revised" License
4 stars 0 forks source link

py.test --looponfail is broken #29

Closed treyhunner closed 9 years ago

treyhunner commented 9 years ago

This used to work for me and now it makes many tests fail.

macro1 commented 9 years ago

Works fine for me.

pytest==2.6.4
pytest-django==2.7.0
pytest-xdist==1.11
treyhunner commented 9 years ago

@macro1 what version of Python are you running and on what OS? I'm running Python 3.4.0 on Ubuntu 14.04.

macro1 commented 9 years ago

Debian Jessie (testing) with Python 3.4.2.

treyhunner commented 9 years ago

I'm seeing many:

RuntimeError: Failed to read 20 bytes from /dev/urandom

It looks like this might be my problem: https://mail.python.org/pipermail/pytest-commit/2014-September/006786.html

treyhunner commented 9 years ago

Seems like it might be a configuration issue: https://bitbucket.org/hpk42/pytest/issue/593/xdist-incompatible-with-multiprocessing-on

macro1 commented 9 years ago

Didn't look too deep, but this seems promising: http://bugs.python.org/issue21470

Upgrade to at least Python 3.4.1

macro1 commented 9 years ago

Another relating to urandom: http://bugs.python.org/issue21207

I would just upgrade your interpreter and try running again.

macro1 commented 9 years ago

@treyhunner, I haven't heard back from you on this... Going to assume all's well.

treyhunner commented 9 years ago

It's still broken, but I think it's a Python version issue that will probably go away during my next Ubuntu upgrade. Let's leave this closed for now.