Source: python-mbed-host-tests Version: 1.4.4-10 Severity: normal 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. telnetlib was removed in Python 3.13. What's new in Python 3.13: https://docs.python.org/3.13/whatsnew/3.13.html Log snippet: test_examle (test.host_test_plugins.HostOSDetectionTestCase.test_examle) ... ok test_pyserial_version_detect (test.host_test_plugins.HostOSDetectionTestCase.test_pyserial_version_detect) ... ok test_host_test_class_has_test_attr (test.host_test_scheme.HostRegistryTestCase.test_host_test_class_has_test_attr) Check if host test has 'result' class member ... ok test_host_test_class_test_attr_callable (test.host_test_scheme.HostRegistryTestCase.test_host_test_class_test_attr_callable) Check if host test has callable 'result' class member ... ok test_host_test_class_test_attr_callable_args_num (test.host_test_scheme.HostRegistryTestCase.test_host_test_class_test_attr_callable_args_num) Check if host test has callable setup(), result() and teardown() class member has 2 arguments ... ok test_copy_bin (test.mps2_copy.MPS2CopyTestCase.test_copy_bin) ... ok test_copy_elf (test.mps2_copy.MPS2CopyTestCase.test_copy_elf) ... ok test_check_sync (test.mps2_reset.MPS2ResetTestCase.test_check_sync) ... ok ====================================================================== ERROR: test.conn_primitive_remote (unittest.loader._FailedTest.test.conn_primitive_remote) ---------------------------------------------------------------------- ImportError: Failed to import test module: test.conn_primitive_remote 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>>/test/conn_primitive_remote.py", line 22, in <module> from mbed_host_tests.host_tests_conn_proxy.conn_primitive_remote import RemoteConnectorPrimitive File "/<<PKGBUILDDIR>>/mbed_host_tests/host_tests_conn_proxy/__init__.py", line 20, in <module> from .conn_proxy import conn_process File "/<<PKGBUILDDIR>>/mbed_host_tests/host_tests_conn_proxy/conn_proxy.py", line 26, in <module> from .conn_primitive_fastmodel import FastmodelConnectorPrimitive File "/<<PKGBUILDDIR>>/mbed_host_tests/host_tests_conn_proxy/conn_primitive_fastmodel.py", line 18, in <module> import telnetlib ModuleNotFoundError: No module named 'telnetlib' ---------------------------------------------------------------------- Ran 24 tests in 0.305s FAILED (errors=1) E: pybuild pybuild:389: test: plugin custom failed with: exit code=1: python3.13 -m unittest discover -v -s test -p "*.py" -t /<<PKGBUILDDIR>> Traceback (most recent call last): File "/usr/bin/pybuild", line 387, in main run(func, i, version, c) File "/usr/bin/pybuild", line 325, in run result = func(context, args) ^^^^^^^^^^^^^^^^^^^ File "/usr/share/dh-python/dhpython/build/base.py", line 365, in wrapped_func raise Exception(msg) Exception: exit code=1: python3.13 -m unittest discover -v -s test -p "*.py" -t /<<PKGBUILDDIR>> I: pybuild base:311: python3.12 -m unittest discover -v -s test -p "*.py" -t /<<PKGBUILDDIR>> D: pybuild tools:231: invoking: python3.12 -m unittest discover -v -s test -p "*.py" -t /<<PKGBUILDDIR>> /<<PKGBUILDDIR>>/mbed_host_tests/host_tests_plugins/module_reset_mbed.py:42: SyntaxWarning: invalid escape sequence '\d' self.re_float = re.compile("^\d+\.\d+") /<<PKGBUILDDIR>>/test/host_test_os_detect.py:33: SyntaxWarning: invalid escape sequence '\d' self.re_float = re.compile("^\d+\.\d+$") test_example (test.basic.BasicTestCase.test_example) ... ok test_get_plugin_caps (test.basic_ht.BasicHostTestsTestCase.test_get_plugin_caps) ... ok test_constructor (test.conn_primitive_remote.ConnPrimitiveRemoteTestCase.test_constructor) ... [1726718324.89][remote][INF] remote resources initialization: remote(host=None, port=8000) [1726718324.89][remote][INF] remote resources count: 1 [1726718324.89][remote][INF] remote resources flashing with 'test.bin'... [1726718324.89][remote][INF] opening connection to platform at baudrate='9600' [1726718324.89][remote][INF] remote resources reset... ok test_finish (test.conn_primitive_remote.ConnPrimitiveRemoteTestCase.test_finish) ... [1726718324.89][remote][INF] remote resources initialization: remote(host=None, port=8000) [1726718324.89][remote][INF] remote resources count: 1 [1726718324.89][remote][INF] remote resources flashing with 'test.bin'... [1726718324.89][remote][INF] opening connection to platform at baudrate='9600' [1726718324.89][remote][INF] remote resources reset... ok test_read (test.conn_primitive_remote.ConnPrimitiveRemoteTestCase.test_read) ... [1726718324.89][remote][INF] remote resources initialization: remote(host=None, port=8000) [1726718324.89][remote][INF] remote resources count: 1 [1726718324.89][remote][INF] remote resources flashing with 'test.bin'... [1726718324.89][remote][INF] opening connection to platform at baudrate='9600' [1726718324.89][remote][INF] remote resources reset... ok test_reset (test.conn_primitive_remote.ConnPrimitiveRemoteTestCase.test_reset) ... [1726718324.90][remote][INF] remote resources initialization: remote(host=None, port=8000) [1726718324.90][remote][INF] remote resources count: 1 [1726718324.90][remote][INF] remote resources flashing with 'test.bin'... [1726718324.90][remote][INF] opening connection to platform at baudrate='9600' [1726718324.90][remote][INF] remote resources reset... [1726718324.90][remote][INF] remote resources reset... ok test_write (test.conn_primitive_remote.ConnPrimitiveRemoteTestCase.test_write) ... [1726718324.90][remote][INF] remote resources initialization: remote(host=None, port=8000) [1726718324.90][remote][INF] remote resources count: 1 [1726718324.90][remote][INF] remote resources flashing with 'test.bin'... [1726718324.90][remote][INF] opening connection to platform at baudrate='9600' [1726718324.90][remote][INF] remote resources reset... ok test_event_callback_decorator (test.event_callback_decorator.TestEvenCallbackDecorator.test_event_callback_decorator) ... ok test_get_host_test (test.host_registry.HostRegistryTestCase.test_get_host_test) ... ok test_host_test_has_name_attribute (test.host_registry.HostRegistryTestCase.test_host_test_has_name_attribute) ... ok test_host_test_str_not_empty (test.host_registry.HostRegistryTestCase.test_host_test_str_not_empty) ... ok test_is_host_test (test.host_registry.HostRegistryTestCase.test_is_host_test) ... ok test_register_host_test (test.host_registry.HostRegistryTestCase.test_register_host_test) ... ok test_unregister_host_test (test.host_registry.HostRegistryTestCase.test_unregister_host_test) ... ok test_host_test_has_no_rampUpDown_attribute (test.host_test_base.BaseHostTestTestCase.test_host_test_has_no_rampUpDown_attribute) ... ok test_host_test_has_setup_teardown_attribute (test.host_test_base.BaseHostTestTestCase.test_host_test_has_setup_teardown_attribute) ... ok test_detect_os_support_ext (test.host_test_os_detect.HostOSDetectionTestCase.test_detect_os_support_ext) ... ok test_os_info (test.host_test_os_detect.HostOSDetectionTestCase.test_os_info) ... ok test_os_support (test.host_test_os_detect.HostOSDetectionTestCase.test_os_support) ... ok test_supported_os_name (test.host_test_os_detect.HostOSDetectionTestCase.test_supported_os_name) ... ok test_examle (test.host_test_plugins.HostOSDetectionTestCase.test_examle) ... ok test_pyserial_version_detect (test.host_test_plugins.HostOSDetectionTestCase.test_pyserial_version_detect) ... ok test_host_test_class_has_test_attr (test.host_test_scheme.HostRegistryTestCase.test_host_test_class_has_test_attr) Check if host test has 'result' class member ... ok test_host_test_class_test_attr_callable (test.host_test_scheme.HostRegistryTestCase.test_host_test_class_test_attr_callable) Check if host test has callable 'result' class member ... ok test_host_test_class_test_attr_callable_args_num (test.host_test_scheme.HostRegistryTestCase.test_host_test_class_test_attr_callable_args_num) Check if host test has callable setup(), result() and teardown() class member has 2 arguments ... ok test_copy_bin (test.mps2_copy.MPS2CopyTestCase.test_copy_bin) ... ok test_copy_elf (test.mps2_copy.MPS2CopyTestCase.test_copy_elf) ... ok test_check_sync (test.mps2_reset.MPS2ResetTestCase.test_check_sync) ... ok ---------------------------------------------------------------------- Ran 28 tests in 0.035s OK rm -fr -- /tmp/dh-xdg-rundir-Q1Mq_5s0 dh_auto_test: error: pybuild --test -i python{version} -p "3.13 3.12" returned exit code 13 make[1]: *** [debian/rules:41: override_dh_auto_test] Error 25 make[1]: Leaving directory '/<<PKGBUILDDIR>>' make: *** [debian/rules:14: binary] Error 2 dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2 -------------------------------------------------------------------------------- Build finished at 2024-09-19T03:58:45Z If required, the full build log is available here (for the next 30 days): https://debusine.debian.net/artifact/785835/ 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

