Bug#1056450: pytest-recording's autopkg tests fail with Python 3.12

Antonio Valentino antonio.valentino at tiscali.it
Sat Nov 25 14:57:10 GMT 2023


Dear Matthias,

On Wed, 22 Nov 2023 14:08:36 +0100 Matthias Klose <doko at debian.org> wrote:
> Package: src:pytest-recording
> Version: 0.13.0-2
> Severity: important
> Tags: sid trixie
> User: debian-python at lists.debian.org
> Usertags: python3.12
> 
> pytest-recording's autopkg tests fail with Python 3.12:
> 
> [...]
> 382s I: pybuild base:310: cd 
> /tmp/autopkgtest.KWZAe2/autopkgtest_tmp/build; python3.12 -m pytest 
> --ignore=/tmp/autopkgtest.KWZAe2/autopkgtest_tmp/build/tests/test_recording.py 
> -k "not test_blocked_network_recording and not 
> test_block_network_with_allowed_hosts and not 
> test_block_network_via_cmd_with_recording and not test_pycurl and not 
> test_combine_cassettes"
> 383s Traceback (most recent call last):
> 383s   File "<frozen runpy>", line 198, in _run_module_as_main
> 383s   File "<frozen runpy>", line 88, in _run_code
> 383s   File "/usr/lib/python3/dist-packages/pytest/__main__.py", line 5, 
> in <module>
> 383s     raise SystemExit(pytest.console_main())
> 383s                      ^^^^^^^^^^^^^^^^^^^^^
[CUT]

> 383s   File "<frozen importlib._bootstrap_external>", line 994, in 
> exec_module
> 383s   File "<frozen importlib._bootstrap>", line 488, in 
> _call_with_frames_removed
> 383s   File "/usr/lib/python3/dist-packages/pytest_httpbin/plugin.py", 
> line 3, in <module>
> 383s     from httpbin import app as httpbin_app
> 383s   File "/usr/lib/python3/dist-packages/httpbin/__init__.py", line 
> 3, in <module>
> 383s     from .core import *
> 383s   File "/usr/lib/python3/dist-packages/httpbin/core.py", line 36, 
> in <module>
> 383s     from flasgger import Swagger, NO_SANITIZER
> 383s   File "/usr/lib/python3/dist-packages/flasgger/__init__.py", line 
> 10, in <module>
> 383s     from .base import Swagger, Flasgger, NO_SANITIZER, 
> BR_SANITIZER, MK_SANITIZER, LazyJSONEncoder  # noqa
> 383s 
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> 383s   File "/usr/lib/python3/dist-packages/flasgger/base.py", line 36, 
> in <module>
> 383s     from .utils import extract_definitions
> 383s   File "/usr/lib/python3/dist-packages/flasgger/utils.py", line 5, 
> in <module>
> 383s     import imp
> 383s ModuleNotFoundError: No module named 'imp'


This seems to be an issue in flasgger.
I will reassign.

cheers
-- 
Antonio Valentino



More information about the Pkg-grass-devel mailing list