Package: src:python-stone
Version: 3.3.1-2
Severity: important
Tags: sid trixie
User: debian-pyt...@lists.debian.org
Usertags: python3.12

python-stone's autopkg tests fail with Python 3.12:

[...]
440s ============================= test session starts ==============================
440s platform linux -- Python 3.12.0+, pytest-7.4.3, pluggy-1.3.0
440s rootdir: /tmp/autopkgtest.nD4l2V/autopkgtest_tmp
440s collected 168 items
440s
440s test/test_backend.py ........... [ 6%] 440s test/test_cli.py . [ 7%] 440s test/test_js_client.py ... [ 8%] 440s test/test_python_client.py .......... [ 14%] 448s test/test_python_gen.py ....................FFFFFFFFFFFFFFFFFFFFFFFFFF.F [ 43%] 451s FFFFFFFFFFFFFF [ 51%] 451s test/test_python_type_stubs.py ........ [ 56%] 451s test/test_python_types.py ..... [ 59%] 457s test/test_stone.py ......................................... [ 83%] 457s test/test_stone_internal.py ........ [ 88%] 458s test/test_stone_route_whitelist.py ........ [ 93%] 458s test/test_tsd_client.py ... [ 95%] 458s test/test_tsd_types.py .....FFF [100%]
458s
458s =================================== FAILURES =================================== 458s __________________ TestGeneratedPython.test_alias_validators ___________________
458s
458s self = <test.test_python_gen.TestGeneratedPython testMethod=test_alias_validators>
458s
458s     def setUp(self):
458s
458s # Sanity check: stone must be importable for the compiler to work
458s         importlib.import_module('stone')
458s
458s         # Compile spec by calling out to stone
458s         p = subprocess.Popen(
458s             [sys.executable,
458s              '-m',
458s              'stone.cli',
458s              'python_types',
458s              'output',
458s              '-',
458s              '--',
458s              '--package',
458s              'output'],
458s             stdin=subprocess.PIPE,
458s             stderr=subprocess.PIPE)
458s         _, stderr = p.communicate(
458s             input=(test_spec + test_ns2_spec).encode('utf-8'))
458s         if p.wait() != 0:
458s >           raise AssertionError('Could not execute stone tool: %s' %
458s                                  stderr.decode('utf-8'))
458s E AssertionError: Could not execute stone tool: Traceback (most recent call last):
458s E             File "<frozen runpy>", line 198, in _run_module_as_main
458s E             File "<frozen runpy>", line 88, in _run_code
458s E File "/usr/lib/python3/dist-packages/stone/cli.py", line 8, in <module>
458s E               import imp  # pylint: disable=deprecated-module
458s E               ^^^^^^^^^^
458s E           ModuleNotFoundError: No module named 'imp'
458s
458s test/test_python_gen.py:838: AssertionError

Reply via email to