Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.bugs.dist > #1175719

Bug#1056481: python-mbed-host-tests autopkg tests fail with Python 3.12

From Matthias Klose <doko@debian.org>
Newsgroups linux.debian.bugs.dist
Subject Bug#1056481: python-mbed-host-tests autopkg tests fail with Python 3.12
Date 2023-11-22 15:20 +0100
Message-ID <HCWf7-7eqU-9@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


Package: src:python-mbed-host-tests
Version: 1.4.4-8
Severity: important
Tags: sid trixie
User: debian-python@lists.debian.org
Usertags: python3.12

python-mbed-host-tests autopkg tests fail with Python 3.12:

[...]
204s autopkgtest [19:06:13]: test python3-mbed-host-tests: 
[-----------------------
204s '/tmp/autopkgtest.ZBPnJ0/build.Sdq/src/test' -> 
'/tmp/autopkgtest.ZBPnJ0/autopkgtest_tmp/test'
204s '/tmp/autopkgtest.ZBPnJ0/build.Sdq/src/test/__init__.py' -> 
'/tmp/autopkgtest.ZBPnJ0/autopkgtest_tmp/test/__init__.py'
204s '/tmp/autopkgtest.ZBPnJ0/build.Sdq/src/test/basic.py' -> 
'/tmp/autopkgtest.ZBPnJ0/autopkgtest_tmp/test/basic.py'
204s '/tmp/autopkgtest.ZBPnJ0/build.Sdq/src/test/basic_ht.py' -> 
'/tmp/autopkgtest.ZBPnJ0/autopkgtest_tmp/test/basic_ht.py'
204s 
'/tmp/autopkgtest.ZBPnJ0/build.Sdq/src/test/conn_primitive_remote.py' -> 
'/tmp/autopkgtest.ZBPnJ0/autopkgtest_tmp/test/conn_primitive_remote.py'
204s 
'/tmp/autopkgtest.ZBPnJ0/build.Sdq/src/test/event_callback_decorator.py' 
-> 
'/tmp/autopkgtest.ZBPnJ0/autopkgtest_tmp/test/event_callback_decorator.py'
204s '/tmp/autopkgtest.ZBPnJ0/build.Sdq/src/test/host_registry.py' -> 
'/tmp/autopkgtest.ZBPnJ0/autopkgtest_tmp/test/host_registry.py'
204s '/tmp/autopkgtest.ZBPnJ0/build.Sdq/src/test/host_test_base.py' -> 
'/tmp/autopkgtest.ZBPnJ0/autopkgtest_tmp/test/host_test_base.py'
204s '/tmp/autopkgtest.ZBPnJ0/build.Sdq/src/test/host_test_os_detect.py' 
-> '/tmp/autopkgtest.ZBPnJ0/autopkgtest_tmp/test/host_test_os_detect.py'
204s '/tmp/autopkgtest.ZBPnJ0/build.Sdq/src/test/host_test_plugins.py' 
-> '/tmp/autopkgtest.ZBPnJ0/autopkgtest_tmp/test/host_test_plugins.py'
204s '/tmp/autopkgtest.ZBPnJ0/build.Sdq/src/test/host_test_scheme.py' -> 
'/tmp/autopkgtest.ZBPnJ0/autopkgtest_tmp/test/host_test_scheme.py'
204s '/tmp/autopkgtest.ZBPnJ0/build.Sdq/src/test/mps2_copy.py' -> 
'/tmp/autopkgtest.ZBPnJ0/autopkgtest_tmp/test/mps2_copy.py'
204s '/tmp/autopkgtest.ZBPnJ0/build.Sdq/src/test/mps2_reset.py' -> 
'/tmp/autopkgtest.ZBPnJ0/autopkgtest_tmp/test/mps2_reset.py'
204s 
/tmp/autopkgtest.ZBPnJ0/autopkgtest_tmp/test/host_test_os_detect.py:33: 
SyntaxWarning: invalid escape sequence '\d'
204s   self.re_float = re.compile("^\d+\.\d+$")
204s test_example (test.basic.BasicTestCase.test_example) ... ok
204s test.basic_ht (unittest.loader._FailedTest.test.basic_ht) ... ERROR
204s test.conn_primitive_remote 
(unittest.loader._FailedTest.test.conn_primitive_remote) ... ERROR
204s test.event_callback_decorator 
(unittest.loader._FailedTest.test.event_callback_decorator) ... ERROR
204s test.host_registry (unittest.loader._FailedTest.test.host_registry) 
... ERROR
204s test.host_test_base 
(unittest.loader._FailedTest.test.host_test_base) ... ERROR
204s test.host_test_os_detect 
(unittest.loader._FailedTest.test.host_test_os_detect) ... ERROR
204s test.host_test_plugins 
(unittest.loader._FailedTest.test.host_test_plugins) ... ERROR
204s test.host_test_scheme 
(unittest.loader._FailedTest.test.host_test_scheme) ... ERROR
204s test.mps2_copy (unittest.loader._FailedTest.test.mps2_copy) ... ERROR
204s test.mps2_reset (unittest.loader._FailedTest.test.mps2_reset) ... ERROR
204s
204s ======================================================================
204s ERROR: test.basic_ht (unittest.loader._FailedTest.test.basic_ht)
204s ----------------------------------------------------------------------
204s ImportError: Failed to import test module: test.basic_ht
204s Traceback (most recent call last):
204s   File "/usr/lib/python3.12/unittest/loader.py", line 394, in 
_find_test_path
204s     module = self._get_module_from_name(name)
204s              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
204s   File "/usr/lib/python3.12/unittest/loader.py", line 337, in 
_get_module_from_name
204s     __import__(name)
204s   File "/tmp/autopkgtest.ZBPnJ0/autopkgtest_tmp/test/basic_ht.py", 
line 21, in <module>
204s     from mbed_host_tests import get_plugin_caps
204s   File 
"/usr/lib/python3/dist-packages/mbed_host_tests/__init__.py", line 30, 
in <module>
204s     import imp
204s ModuleNotFoundError: No module named 'imp'
204s
204s
204s ======================================================================
204s ERROR: test.conn_primitive_remote 
(unittest.loader._FailedTest.test.conn_primitive_remote)
204s ----------------------------------------------------------------------
204s ImportError: Failed to import test module: test.conn_primitive_remote
204s Traceback (most recent call last):
204s   File "/usr/lib/python3.12/unittest/loader.py", line 394, in 
_find_test_path
204s     module = self._get_module_from_name(name)
204s              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
204s   File "/usr/lib/python3.12/unittest/loader.py", line 337, in 
_get_module_from_name
204s     __import__(name)
204s   File 
"/tmp/autopkgtest.ZBPnJ0/autopkgtest_tmp/test/conn_primitive_remote.py", 
line 22, in <module>
204s     from 
mbed_host_tests.host_tests_conn_proxy.conn_primitive_remote import 
RemoteConnectorPrimitive
204s   File 
"/usr/lib/python3/dist-packages/mbed_host_tests/__init__.py", line 30, 
in <module>
204s     import imp
204s ModuleNotFoundError: No module named 'imp'
204s
204s
204s ======================================================================
204s ERROR: test.event_callback_decorator 
(unittest.loader._FailedTest.test.event_callback_decorator)
204s ----------------------------------------------------------------------
204s ImportError: Failed to import test module: 
test.event_callback_decorator
204s Traceback (most recent call last):
204s   File "/usr/lib/python3.12/unittest/loader.py", line 394, in 
_find_test_path
204s     module = self._get_module_from_name(name)
204s              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
204s   File "/usr/lib/python3.12/unittest/loader.py", line 337, in 
_get_module_from_name
204s     __import__(name)
204s   File 
"/tmp/autopkgtest.ZBPnJ0/autopkgtest_tmp/test/event_callback_decorator.py", 
line 17, in <module>
204s     from mbed_host_tests.host_tests.base_host_test import 
BaseHostTest, event_callback
204s   File 
"/usr/lib/python3/dist-packages/mbed_host_tests/__init__.py", line 30, 
in <module>
204s     import imp
204s ModuleNotFoundError: No module named 'imp'
204s
204s
204s ======================================================================
204s ERROR: test.host_registry 
(unittest.loader._FailedTest.test.host_registry)
204s ----------------------------------------------------------------------
204s ImportError: Failed to import test module: test.host_registry
204s Traceback (most recent call last):
204s   File "/usr/lib/python3.12/unittest/loader.py", line 394, in 
_find_test_path
204s     module = self._get_module_from_name(name)
204s              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
204s   File "/usr/lib/python3.12/unittest/loader.py", line 337, in 
_get_module_from_name
204s     __import__(name)
204s   File 
"/tmp/autopkgtest.ZBPnJ0/autopkgtest_tmp/test/host_registry.py", line 
20, in <module>
204s     from mbed_host_tests.host_tests_registry import HostRegistry
204s   File 
"/usr/lib/python3/dist-packages/mbed_host_tests/__init__.py", line 30, 
in <module>
204s     import imp
204s ModuleNotFoundError: No module named 'imp'
204s
204s
204s ======================================================================
204s ERROR: test.host_test_base 
(unittest.loader._FailedTest.test.host_test_base)
204s ----------------------------------------------------------------------
204s ImportError: Failed to import test module: test.host_test_base
204s Traceback (most recent call last):
204s   File "/usr/lib/python3.12/unittest/loader.py", line 394, in 
_find_test_path
204s     module = self._get_module_from_name(name)
204s              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
204s   File "/usr/lib/python3.12/unittest/loader.py", line 337, in 
_get_module_from_name
204s     __import__(name)
204s   File 
"/tmp/autopkgtest.ZBPnJ0/autopkgtest_tmp/test/host_test_base.py", line 
21, in <module>
204s     from mbed_host_tests.host_tests_registry import HostRegistry
204s   File 
"/usr/lib/python3/dist-packages/mbed_host_tests/__init__.py", line 30, 
in <module>
204s     import imp
204s ModuleNotFoundError: No module named 'imp'
204s
204s
204s ======================================================================
204s ERROR: test.host_test_os_detect 
(unittest.loader._FailedTest.test.host_test_os_detect)
204s ----------------------------------------------------------------------
204s ImportError: Failed to import test module: test.host_test_os_detect
204s Traceback (most recent call last):
204s   File "/usr/lib/python3.12/unittest/loader.py", line 394, in 
_find_test_path
204s     module = self._get_module_from_name(name)
204s              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
204s   File "/usr/lib/python3.12/unittest/loader.py", line 337, in 
_get_module_from_name
204s     __import__(name)
204s   File 
"/tmp/autopkgtest.ZBPnJ0/autopkgtest_tmp/test/host_test_os_detect.py", 
line 25, in <module>
204s     from mbed_host_tests.host_tests_plugins.host_test_plugins 
import HostTestPluginBase
204s   File 
"/usr/lib/python3/dist-packages/mbed_host_tests/__init__.py", line 30, 
in <module>
204s     import imp
204s ModuleNotFoundError: No module named 'imp'
204s
204s
204s ======================================================================
204s ERROR: test.host_test_plugins 
(unittest.loader._FailedTest.test.host_test_plugins)
204s ----------------------------------------------------------------------
204s ImportError: Failed to import test module: test.host_test_plugins
204s Traceback (most recent call last):
204s   File "/usr/lib/python3.12/unittest/loader.py", line 394, in 
_find_test_path
204s     module = self._get_module_from_name(name)
204s              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
204s   File "/usr/lib/python3.12/unittest/loader.py", line 337, in 
_get_module_from_name
204s     __import__(name)
204s   File 
"/tmp/autopkgtest.ZBPnJ0/autopkgtest_tmp/test/host_test_plugins.py", 
line 21, in <module>
204s     from mbed_host_tests.host_tests_plugins.module_reset_mbed 
import HostTestPluginResetMethod_Mbed
204s   File 
"/usr/lib/python3/dist-packages/mbed_host_tests/__init__.py", line 30, 
in <module>
204s     import imp
204s ModuleNotFoundError: No module named 'imp'
204s
204s
204s ======================================================================
204s ERROR: test.host_test_scheme 
(unittest.loader._FailedTest.test.host_test_scheme)
204s ----------------------------------------------------------------------
204s ImportError: Failed to import test module: test.host_test_scheme
204s Traceback (most recent call last):
204s   File "/usr/lib/python3.12/unittest/loader.py", line 394, in 
_find_test_path
204s     module = self._get_module_from_name(name)
204s              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
204s   File "/usr/lib/python3.12/unittest/loader.py", line 337, in 
_get_module_from_name
204s     __import__(name)
204s   File 
"/tmp/autopkgtest.ZBPnJ0/autopkgtest_tmp/test/host_test_scheme.py", line 
21, in <module>
204s     from mbed_host_tests.host_tests_registry import HostRegistry
204s   File 
"/usr/lib/python3/dist-packages/mbed_host_tests/__init__.py", line 30, 
in <module>
204s     import imp
204s ModuleNotFoundError: No module named 'imp'
204s
204s
204s ======================================================================
204s ERROR: test.mps2_copy (unittest.loader._FailedTest.test.mps2_copy)
204s ----------------------------------------------------------------------
204s ImportError: Failed to import test module: test.mps2_copy
204s Traceback (most recent call last):
204s   File "/usr/lib/python3.12/unittest/loader.py", line 394, in 
_find_test_path
204s     module = self._get_module_from_name(name)
204s              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
204s   File "/usr/lib/python3.12/unittest/loader.py", line 337, in 
_get_module_from_name
204s     __import__(name)
204s   File "/tmp/autopkgtest.ZBPnJ0/autopkgtest_tmp/test/mps2_copy.py", 
line 22, in <module>
204s     from mbed_host_tests.host_tests_plugins.module_copy_mps2 import 
HostTestPluginCopyMethod_MPS2
204s   File 
"/usr/lib/python3/dist-packages/mbed_host_tests/__init__.py", line 30, 
in <module>
204s     import imp
204s ModuleNotFoundError: No module named 'imp'
204s
204s
204s ======================================================================
204s ERROR: test.mps2_reset (unittest.loader._FailedTest.test.mps2_reset)
204s ----------------------------------------------------------------------
204s ImportError: Failed to import test module: test.mps2_reset
204s Traceback (most recent call last):
204s   File "/usr/lib/python3.12/unittest/loader.py", line 394, in 
_find_test_path
204s     module = self._get_module_from_name(name)
204s              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
204s   File "/usr/lib/python3.12/unittest/loader.py", line 337, in 
_get_module_from_name
204s     __import__(name)
204s   File 
"/tmp/autopkgtest.ZBPnJ0/autopkgtest_tmp/test/mps2_reset.py", line 24, 
in <module>
204s     from mbed_host_tests.host_tests_plugins.module_reset_mps2 
import HostTestPluginResetMethod_MPS2
204s   File 
"/usr/lib/python3/dist-packages/mbed_host_tests/__init__.py", line 30, 
in <module>
204s     import imp
204s ModuleNotFoundError: No module named 'imp'
204s
204s
204s ----------------------------------------------------------------------
204s Ran 11 tests in 0.001s
204s
204s FAILED (errors=10)

Back to linux.debian.bugs.dist | Previous | Next | Find similar | Unroll thread


Thread

Bug#1056481: python-mbed-host-tests autopkg tests fail with Python 3.12 Matthias Klose <doko@debian.org> - 2023-11-22 15:20 +0100

csiph-web