[py-dev] KeyError in xdist/looponfail.py

Ralf Schmitt schmir at gmail.com
Thu Apr 14 20:51:08 CEST 2011


holger krekel <holger at merlinux.eu> writes:

> Hey Ralf,
>
> can you give me the output of "py.test --version"?

yes, sorry. should have mentioned that, but I was in a hurry and didn't
want to let the issue get lost.

,----
| This is py.test version 2.0.2, imported from /home/ralf/local/lib/python2.7/site-packages/pytest.pyc
| setuptools registered plugins:
|   pytest-xdist-1.5 at /home/ralf/local/lib/python2.7/site-packages/xdist/plugin.pyc
`----

> And when exactly is searchproc_flymake.py created and removed?

after saving searchproc.py, emacs creates searchproc_flymake.py, runs pyflakes
on it and then deletes it.

> (the looponfail-detection code should be robust against file
> removals but maybe there is a race condition)

I'm pretty sure there is a race condition :)

cheers,
- ralf



More information about the Pytest-dev mailing list