Seems that pytest crashes when trying to get the code snippet of an assertion failure when the assertion failure occurs in a multiprocessing task.
Here's a log of the pytest run https://gist.github.com/adborden/376f2dd3defae8fced33b655913e5f91#file-pytest_crash-log
Here's the test case that causes the crash
https://gist.github.com/adborden/376f2dd3defae8fced33b655913e5f91#file-test_pytest_crash-py
Here's a snippet of the traceback (see above for full stack).
INTERNALERROR> File "/home/adborden/.pyenv/versions/3.4.5/envs/pytest-crash/lib/python3.4/site-packages/_pytest/_code/code.py", line 373, in __init__
INTERNALERROR> self.traceback = _pytest._code.Traceback(self.tb, excinfo=self)
INTERNALERROR> File "/home/adborden/.pyenv/versions/3.4.5/envs/pytest-crash/lib/python3.4/site-packages/_pytest/_code/code.py", line 270, in __init__
INTERNALERROR> list.__init__(self, tb)
INTERNALERROR> TypeError: 'NoneType' object is not iterable
Using pytest-3.0.3 on Ubuntu 15.10
Virtualenv:
$ pip list
pip (8.1.1)
py (1.4.31)
pytest (3.0.3)
setuptools (20.10.1)
Seems that pytest crashes when trying to get the code snippet of an assertion failure when the assertion failure occurs in a
multiprocessingtask.Here's a log of the pytest run https://gist.github.com/adborden/376f2dd3defae8fced33b655913e5f91#file-pytest_crash-log
Here's the test case that causes the crash
https://gist.github.com/adborden/376f2dd3defae8fced33b655913e5f91#file-test_pytest_crash-py
Here's a snippet of the traceback (see above for full stack).
Using pytest-3.0.3 on Ubuntu 15.10
Virtualenv: