Source: python-iniparse Version: 0.5-2 Severity: normal User: debian-pyt...@lists.debian.org Usertags: python3.13 Forwarded: https://github.com/candlepin/python-iniparse/pull/32
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 Log snippet: debian/rules override_dh_auto_test make[1]: Entering directory '/<<PKGBUILDDIR>>' PYBUILD_SYSTEM=custom \ PYBUILD_TEST_ARGS="cd {build_dir}; python{version} ./runtests.py" \ dh_auto_test --buildsystem=pybuild I: pybuild base:311: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_iniparse/build; python3.13 ./runtests.py /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_iniparse/build/tests/test_ini.py:29: SyntaxWarning: invalid escape sequence '\c' ('[se\ct%[ion\t]', ('se\ct%[ion\t', None, None, -1)), /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_iniparse/build/tests/test_ini.py:29: SyntaxWarning: invalid escape sequence '\c' ('[se\ct%[ion\t]', ('se\ct%[ion\t', None, None, -1)), /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_iniparse/build/tests/test_fuzz.py:58: SyntaxWarning: invalid escape sequence '\[' name = re.sub(':|=| |\[', '', name) Traceback (most recent call last): File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_iniparse/build/./runtests.py", line 12, in <module> unittest.main(defaultTest='tests.Suite') ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.13/unittest/main.py", line 103, in __init__ self.parseArgs(argv) ~~~~~~~~~~~~~~^^^^^^ File "/usr/lib/python3.13/unittest/main.py", line 142, in parseArgs self.createTests() ~~~~~~~~~~~~~~~~^^ File "/usr/lib/python3.13/unittest/main.py", line 153, in createTests self.test = self.testLoader.loadTestsFromNames(self.testNames, ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^ self.module) ^^^^^^^^^^^^ File "/usr/lib/python3.13/unittest/loader.py", line 207, in loadTestsFromNames suites = [self.loadTestsFromName(name, module) for name in names] ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ File "/usr/lib/python3.13/unittest/loader.py", line 192, in loadTestsFromName test = obj() File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_iniparse/build/tests/__init__.py", line 18, in __init__ test_ini.Suite(), ~~~~~~~~~~~~~~^^ File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_iniparse/build/tests/test_ini.py", line 416, in __init__ unittest.makeSuite(TestSectionLine, 'test'), ^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.13/unittest/__init__.py", line 80, in __getattr__ raise AttributeError(f"module {__name__!r} has no attribute {name!r}") AttributeError: module 'unittest' has no attribute 'makeSuite' E: pybuild pybuild:389: test: plugin custom failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_iniparse/build; python3.13 ./runtests.py I: pybuild base:311: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_iniparse/build; python3.12 ./runtests.py /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_iniparse/build/tests/test_ini.py:29: SyntaxWarning: invalid escape sequence '\c' ('[se\ct%[ion\t]', ('se\ct%[ion\t', None, None, -1)), /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_iniparse/build/tests/test_ini.py:29: SyntaxWarning: invalid escape sequence '\c' ('[se\ct%[ion\t]', ('se\ct%[ion\t', None, None, -1)), /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_iniparse/build/tests/test_fuzz.py:58: SyntaxWarning: invalid escape sequence '\[' name = re.sub(':|=| |\[', '', name) .........................................s..................................................... ---------------------------------------------------------------------- Ran 95 tests in 0.034s OK (skipped=1) dh_auto_test: error: pybuild --test -i python{version} -p "3.13 3.12" returned exit code 13 make[1]: *** [debian/rules:12: override_dh_auto_test] Error 25 make[1]: Leaving directory '/<<PKGBUILDDIR>>' make: *** [debian/rules:6: binary] Error 2 dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2 -------------------------------------------------------------------------------- Build finished at 2024-09-19T02:52:03Z If required, the full build log is available here (for the next 30 days): https://debusine.debian.net/artifact/784378/ 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