Source: python-roman Version: 3.3-3 Severity: normal Tags: fixed-upstream User: [email protected] Usertags: python3.13
This package failed build from source when test-built against a version of python3-defaults that includes 3.13 as a supported version. To reproduce this issue, build against python3-defaults (python3-all-dev etc.) from Debian experimental. What's new in Python 3.13: https://docs.python.org/3.13/whatsnew/3.13.html 4.2 upstream apparently supports 3.13. Log snippet: dh_auto_test -O--buildsystem=pybuild I: pybuild base:311: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_roman/build; python3.13 -m pytest tests.py ============================= test session starts ============================== platform linux -- Python 3.13.0rc2, pytest-8.3.3, pluggy-1.5.0 rootdir: /<<PKGBUILDDIR>> plugins: typeguard-4.3.0 collected 9 items tests.py ........F [100%] =================================== FAILURES =================================== __________________________________ test_suite __________________________________ def test_suite(): > return unittest.makeSuite(TestRoman) tests.py:83: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ name = 'makeSuite' def __getattr__(name): if name == 'IsolatedAsyncioTestCase': global IsolatedAsyncioTestCase from .async_case import IsolatedAsyncioTestCase return IsolatedAsyncioTestCase > raise AttributeError(f"module {__name__!r} has no attribute {name!r}") E AttributeError: module 'unittest' has no attribute 'makeSuite' /usr/lib/python3.13/unittest/__init__.py:80: AttributeError =========================== short test summary info ============================ FAILED tests.py::test_suite - AttributeError: module 'unittest' has no attrib... ========================= 1 failed, 8 passed in 0.04s ========================== E: pybuild pybuild:389: test: plugin distutils failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_roman/build; python3.13 -m pytest tests.py I: pybuild base:311: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_roman/build; python3.12 -m pytest tests.py ============================= test session starts ============================== platform linux -- Python 3.12.6, pytest-8.3.3, pluggy-1.5.0 rootdir: /<<PKGBUILDDIR>> plugins: typeguard-4.3.0 collected 9 items tests.py ......... [100%] =============================== warnings summary =============================== .pybuild/cpython3_3.12_roman/build/tests.py::test_suite /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_roman/build/tests.py:83: DeprecationWarning: unittest.makeSuite() is deprecated and will be removed in Python 3.13. Please use unittest.TestLoader.loadTestsFromTestCase() instead. return unittest.makeSuite(TestRoman) .pybuild/cpython3_3.12_roman/build/tests.py::test_suite /usr/lib/python3/dist-packages/_pytest/python.py:163: PytestReturnNotNoneWarning: Expected None, but .pybuild/cpython3_3.12_roman/build/tests.py::test_suite returned <unittest.suite.TestSuite tests=[<tests.TestRoman testMethod=test_fromRoman>, <tests.TestRoman testMethod=test_fromRoman_errors>, <tests.TestRoman testMethod=test_main_fromRoman>, <tests.TestRoman testMethod=test_main_fromRoman_caseInsensitive>, <tests.TestRoman testMethod=test_main_toRoman>, <tests.TestRoman testMethod=test_parse_args>, <tests.TestRoman testMethod=test_toRoman>, <tests.TestRoman testMethod=test_toRoman_errors>]>, which will be an error in a future version of pytest. Did you mean to use `assert` instead of `return`? warnings.warn( -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html ======================== 9 passed, 2 warnings in 0.03s ========================= dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.13 3.12" returned exit code 13 make: *** [debian/rules:7: binary] Error 25 dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2 -------------------------------------------------------------------------------- Build finished at 2024-09-19T07:30:29Z If required, the full build log is available here (for the next 30 days): https://debusine.debian.net/artifact/788575/ This bug has been filed at "normal" severity, as we haven't started the transition to add 3.13 as a supported version, yet. This will be raised to RC as soon as that happens, hopefully well before trixie. Thanks, Stefano

