Source: pytest-xdist
Version: 1.15.0-3
Severity: serious
Justification: fails to build from source
Control: forwarded -1 https://github.com/pytest-dev/pytest-xdist/issues/163
There is a new test failure with Pytest >= 3.1.0, during the build it appears
the first time with Python 2.7:
<cut>
=================================== FAILURES ===================================
________________ TestLooponFailing.test_looponfail_removed_test ________________
self = <test_looponfail.TestLooponFailing instance at 0x7fe7fa5dbb90>
testdir = <Testdir
local('/tmp/pytest-of-aham/pytest-0/testdir/test_looponfail_removed_test0')>
def test_looponfail_removed_test(self, testdir):
modcol = testdir.getmodulecol("""
def test_one():
assert 0
def test_two():
assert 0
""")
remotecontrol = RemoteControl(modcol.config)
remotecontrol.loop_once()
assert len(remotecontrol.failures) == 2
modcol.fspath.write(py.code.Source("""
def test_xxx(): # renamed test
assert 0
def test_two():
assert 1 # pass now
"""))
removepyc(modcol.fspath)
remotecontrol.loop_once()
> assert len(remotecontrol.failures) == 0
E AssertionError: assert 1 == 0
E + where 1 = len(['test_looponfail_removed_test.py::test_xxx'])
E + where ['test_looponfail_removed_test.py::test_xxx'] =
<xdist.looponfail.RemoteControl object at 0x7fe7fac985d0>.failures
</cut>
The failure takes place also with the latest version 0.18.1, it isn't yet solved
upstream.
DS
-- System Information:
Debian Release: buster/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 4.5.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_DE.utf8, LC_CTYPE=de_DE.utf8 (charmap=UTF-8),
LANGUAGE=de_DE.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)