[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1056449: pytest-localserver's autopkg tests fail with Python 3.12



Package: src:pytest-localserver
Version: 0.5.0-4
Severity: important
Tags: sid trixie
User: debian-python@lists.debian.org
Usertags: python3.12

pytest-localserver's autopkg tests fail with Python 3.12:

[...]
396s [*] testing python3.12:
397s ============================= test session starts ============================== 397s platform linux -- Python 3.12.0+, pytest-7.4.3, pluggy-1.3.0 -- /usr/bin/python3.12
397s cachedir: .pytest_cache
397s rootdir: /tmp/autopkgtest.lrRZTA/build.tzK/src
397s collecting ... collected 11 items / 1 error
397s
397s ==================================== ERRORS ==================================== 397s _____________________ ERROR collecting tests/test_smtp.py ______________________ 397s ImportError while importing test module '/tmp/autopkgtest.lrRZTA/build.tzK/src/tests/test_smtp.py'.
397s Hint: make sure your test modules/packages have valid Python names.
397s Traceback:
397s /usr/lib/python3.12/importlib/__init__.py:90: in import_module
397s     return _bootstrap._gcd_import(name[level:], package, level)
397s tests/test_smtp.py:8: in <module>
397s     from pytest_localserver import plugin, smtp
397s pytest_localserver/smtp.py:10: in <module>
397s     import asyncore
397s E   ModuleNotFoundError: No module named 'asyncore'
397s =========================== short test summary info ============================
397s ERROR tests/test_smtp.py
397s !!!!!!!!!!!!!!!!!!!!!!!!!! stopping after 1 failures !!!!!!!!!!!!!!!!!!!!!!!!!!! 397s !!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!! 397s =============================== 1 error in 0.41s ===============================


Reply to: