Source: ptyprocess Version: 0.7.0-5 Severity: normal User: debian-pyt...@lists.debian.org Usertags: python3.13 Forwarded: https://github.com/pexpect/ptyprocess/pull/75
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: ====================================================================== ERROR: tests.test_invalid_binary (unittest.loader._FailedTest.tests.test_invalid_binary) ---------------------------------------------------------------------- ImportError: Failed to import test module: tests.test_invalid_binary Traceback (most recent call last): File "/usr/lib/python3.13/unittest/loader.py", line 396, in _find_test_path module = self._get_module_from_name(name) File "/usr/lib/python3.13/unittest/loader.py", line 339, in _get_module_from_name __import__(name) ~~~~~~~~~~^^^^^^ File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_ptyprocess/build/tests/test_invalid_binary.py", line 73, in <module> suite = unittest.makeSuite(InvalidBinaryChars,'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' ---------------------------------------------------------------------- Ran 14 tests in 3.660s FAILED (errors=1, skipped=2) E: pybuild pybuild:389: test: plugin pyproject failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_ptyprocess/build; python3.13 -m unittest discover -v I: pybuild base:311: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_ptyprocess/build; python3.12 -m unittest discover -v test_waitnoecho_forever (tests.test_echo.PtyEchoTestCase.test_waitnoecho_forever) Ensure waitnoecho() with no timeout will return when echo=False. ... ok test_waitnoecho_timeout (tests.test_echo.PtyEchoTestCase.test_waitnoecho_timeout) Ensure waitnoecho() with timeout will return when using stty to unset echo. ... ok test_invalid_binary (tests.test_invalid_binary.InvalidBinaryChars.test_invalid_binary) This tests that we correctly handle the case where we attempt to ... ok test_preexec (tests.test_preexec_fn.PreexecFns.test_preexec) ... ok test_preexec_error (tests.test_preexec_fn.PreexecFns.test_preexec_error) ... ok test_interactive_repl_unicode_echo (tests.test_spawn.PtyTestCase.test_interactive_repl_unicode_echo) ... skipped 'bc(1) not found on this server.' test_interactive_repl_unicode_noecho (tests.test_spawn.PtyTestCase.test_interactive_repl_unicode_noecho) ... skipped 'bc(1) not found on this server.' test_pass_fds (tests.test_spawn.PtyTestCase.test_pass_fds) ... ok test_quick_spawn (tests.test_spawn.PtyTestCase.test_quick_spawn) Spawn a very short-lived process. ... ok test_spawn_sh (tests.test_spawn.PtyTestCase.test_spawn_sh) ... ok test_spawn_sh_unicode (tests.test_spawn.PtyTestCase.test_spawn_sh_unicode) ... ok test_wait_false_shortproc (tests.test_wait.TestWaitAfterTermination.test_wait_false_shortproc) Ensure correct (False) wait status for short-lived processes. ... ok test_wait_true_shortproc (tests.test_wait.TestWaitAfterTermination.test_wait_true_shortproc) Ensure correct (True) wait status for short-lived processes. ... ok test_wait_twice_longproc (tests.test_wait.TestWaitAfterTermination.test_wait_twice_longproc) Ensure correct wait status when called twice. ... ok ---------------------------------------------------------------------- Ran 14 tests in 3.665s OK (skipped=2) dh_auto_test: error: pybuild --test -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-18T18:17:37Z If required, the full build log is available here (for the next 30 days): https://debusine.debian.net/artifact/777592/ 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