Source: exam Version: 0.10.6-1 Severity: serious Justification: FTBFS Tags: trixie sid ftbfs User: lu...@debian.org Usertags: ftbfs-20231212 ftbfs-trixie
Hi, During a rebuild of all packages in sid, your package failed to build on amd64. Relevant part (hopefully): > debian/rules build > dh build --with python3 --buildsystem=pybuild > dh_update_autotools_config -O--buildsystem=pybuild > dh_autoreconf -O--buildsystem=pybuild > dh_auto_configure -O--buildsystem=pybuild > I: pybuild base:310: python3.12 setup.py config > running config > I: pybuild base:310: python3.11 setup.py config > running config > dh_auto_build -O--buildsystem=pybuild > I: pybuild base:310: /usr/bin/python3.12 setup.py build > running build > running build_py > creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_exam/build/exam > copying exam/__init__.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_exam/build/exam > copying exam/objects.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_exam/build/exam > copying exam/asserts.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_exam/build/exam > copying exam/decorators.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_exam/build/exam > copying exam/fixtures.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_exam/build/exam > copying exam/helpers.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_exam/build/exam > copying exam/cases.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_exam/build/exam > copying exam/mock.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_exam/build/exam > I: pybuild base:310: /usr/bin/python3 setup.py build > running build > running build_py > creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_exam/build/exam > copying exam/__init__.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_exam/build/exam > copying exam/objects.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_exam/build/exam > copying exam/asserts.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_exam/build/exam > copying exam/decorators.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_exam/build/exam > copying exam/fixtures.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_exam/build/exam > copying exam/helpers.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_exam/build/exam > copying exam/cases.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_exam/build/exam > copying exam/mock.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_exam/build/exam > dh_auto_test -O--buildsystem=pybuild > I: pybuild base:310: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_exam/build; > python3.12 -m pytest tests > ============================= test session starts > ============================== > platform linux -- Python 3.12.1, pytest-7.4.3, pluggy-1.3.0 > rootdir: /<<PKGBUILDDIR>> > collected 55 items > > tests/test_asserts.py .F...F.. [ > 14%] > tests/test_cases.py ................ [ > 43%] > tests/test_decorators.py .......... [ > 61%] > tests/test_exam.py .. [ > 65%] > tests/test_helpers.py ........... [ > 85%] > tests/test_mock.py .s.ss [ > 94%] > tests/test_objects.py ... > [100%] > > =================================== FAILURES > =================================== > _ AssertChangesMixin.test_assertion_error_mentions_unexpected_result_at_after > __ > > self = <tests.test_asserts.AssertChangesMixin > testMethod=test_assertion_error_mentions_unexpected_result_at_after> > > def test_assertion_error_mentions_unexpected_result_at_after(self): > msg = 'Value changed to 1, not 3' > > with self.assertRaisesRegexp(AssertionError, msg): > E AttributeError: 'AssertChangesMixin' object has no attribute > 'assertRaisesRegexp'. Did you mean: 'assertRaisesRegex'? > > tests/test_asserts.py:61: AttributeError > _______ AssertChangesMixin.test_raises_assertion_error_if_value_changes > ________ > > self = <tests.test_asserts.AssertChangesMixin > testMethod=test_raises_assertion_error_if_value_changes> > > def test_raises_assertion_error_if_value_changes(self): > msg = 'Value changed from 0 to 1' > > with self.assertRaisesRegexp(AssertionError, msg): > E AttributeError: 'AssertChangesMixin' object has no attribute > 'assertRaisesRegexp'. Did you mean: 'assertRaisesRegex'? > > tests/test_asserts.py:55: AttributeError > =============================== warnings summary > =============================== > exam/mock.py:19 > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_exam/build/exam/mock.py:19: > SyntaxWarning: "is not" with 'int' literal. Did you mean "!="? > assert len(self.__calls_matching(*args, **kwargs)) is not 1 > > exam/mock.py:22 > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_exam/build/exam/mock.py:22: > SyntaxWarning: "is" with 'int' literal. Did you mean "=="? > assert len(self.__calls_matching(*args, **kwargs)) is 0 > > -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html > =========================== short test summary info > ============================ > FAILED > tests/test_asserts.py::AssertChangesMixin::test_assertion_error_mentions_unexpected_result_at_after > FAILED > tests/test_asserts.py::AssertChangesMixin::test_raises_assertion_error_if_value_changes > ============= 2 failed, 50 passed, 3 skipped, 2 warnings in 0.18s > ============== > E: pybuild pybuild:395: test: plugin distutils failed with: exit code=1: cd > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_exam/build; python3.12 -m pytest tests > I: pybuild base:310: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_exam/build; > python3.11 -m pytest tests > ============================= test session starts > ============================== > platform linux -- Python 3.11.7, pytest-7.4.3, pluggy-1.3.0 > rootdir: /<<PKGBUILDDIR>> > collected 55 items > > tests/test_asserts.py ........ [ > 14%] > tests/test_cases.py ................ [ > 43%] > tests/test_decorators.py .......... [ > 61%] > tests/test_exam.py .. [ > 65%] > tests/test_helpers.py ........... [ > 85%] > tests/test_mock.py .s.ss [ > 94%] > tests/test_objects.py ... > [100%] > > =============================== warnings summary > =============================== > exam/mock.py:19 > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_exam/build/exam/mock.py:19: > SyntaxWarning: "is not" with a literal. Did you mean "!="? > assert len(self.__calls_matching(*args, **kwargs)) is not 1 > > exam/mock.py:22 > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_exam/build/exam/mock.py:22: > SyntaxWarning: "is" with a literal. Did you mean "=="? > assert len(self.__calls_matching(*args, **kwargs)) is 0 > > .pybuild/cpython3_3.11_exam/build/tests/test_asserts.py::AssertChangesMixin::test_assertion_error_mentions_unexpected_result_at_after > > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_exam/build/tests/test_asserts.py:61: > DeprecationWarning: Please use assertRaisesRegex instead. > with self.assertRaisesRegexp(AssertionError, msg): > > .pybuild/cpython3_3.11_exam/build/tests/test_asserts.py::AssertChangesMixin::test_raises_assertion_error_if_value_changes > > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_exam/build/tests/test_asserts.py:55: > DeprecationWarning: Please use assertRaisesRegex instead. > with self.assertRaisesRegexp(AssertionError, msg): > > -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html > ================== 52 passed, 3 skipped, 4 warnings in 0.14s > =================== > dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.12 > 3.11" returned exit code 13 The full build log is available from: http://qa-logs.debian.net/2023/12/12/exam_0.10.6-1_unstable.log All bugs filed during this archive rebuild are listed at: https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20231212;users=lu...@debian.org or: https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20231212&fusertaguser=lu...@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results A list of current common problems and possible solutions is available at http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute! If you reassign this bug to another package, please mark it as 'affects'-ing this package. See https://www.debian.org/Bugs/server-control#affects If you fail to reproduce this, please provide a build log and diff it with mine so that we can identify if something relevant changed in the meantime.