[Python-modules-team] Bug#916944: pytest FTBFS: TestRaises.test_raises_exception_looks_iterable fails
Adrian Bunk
bunk at debian.org
Thu Dec 20 18:56:42 GMT 2018
Source: pytest
Version: 3.6.4-1
Severity: serious
Tags: ftbfs
Some recent change in unstable makes pytest FTBFS:
https://tests.reproducible-builds.org/debian/history/pytest.html
https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/pytest.html
...
=================================== FAILURES ===================================
_______________ TestRaises.test_raises_exception_looks_iterable ________________
self = <raises.TestRaises object at 0x7f88851c86a0>
def test_raises_exception_looks_iterable(self):
from six import add_metaclass
class Meta(type(object)):
def __getitem__(self, item):
return 1 / 0
def __len__(self):
return 1
@add_metaclass(Meta)
class ClassLooksIterableException(Exception):
pass
with pytest.raises(
Failed, match="DID NOT RAISE <class 'raises.ClassLooksIterableException'>"
):
> pytest.raises(ClassLooksIterableException, lambda: None)
/build/1st/pytest-3.10.1/testing/python/raises.py:174:
...
1 failed, 1986 passed, 47 skipped, 1 deselected, 10 xfailed in 268.71 seconds =
E: pybuild pybuild:338: test: plugin custom failed with: exit code=1: cd /build/1st/pytest-3.10.1/debian/tmp/test-working-directory && python3.7 -m pytest --lsof -rfsxX --ignore=/build/1st/pytest-3.10.1/testing/freeze --ignore=/build/1st/pytest-3.10.1/testing/test_entry_points.py --ignore=/build/1st/pytest-3.10.1/testing/test_pdb.py --ignore=/build/1st/pytest-3.10.1/testing/test_mark.py --ignore=/build/1st/pytest-3.10.1/testing/test_terminal.py -k 'not test_trial_pdb' /build/1st/pytest-3.10.1/testing
dh_auto_test: pybuild --test --test-nose -i python{version} -p 3.7 --system=custom returned exit code 13
make[1]: *** [debian/rules:47: override_dh_auto_test] Error 25
More information about the Python-modules-team
mailing list