Bug#1058352: pytest-localserver: FTBFS: dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.12 3.11" returned exit code 13
Source: pytest-localserver
Version: 0.5.0-4
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: lucas@debian.org
Usertags: ftbfs-20231212 ftbfs-trixie
Hi,
During a rebuild of all packages in sid, your package failed to build
on amd64.
Relevant part (hopefully):
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> PYBUILD_SYSTEM=custom PYBUILD_TEST_ARGS="{interpreter} -m pytest -v -x" dh_auto_test
> I: pybuild base:310: python3.12 -m pytest -v -x
> ============================= test session starts ==============================
> platform linux -- Python 3.12.1, pytest-7.4.3, pluggy-1.3.0 -- /usr/bin/python3.12
> cachedir: .pytest_cache
> rootdir: /<<PKGBUILDDIR>>
> plugins: localserver-0.5.0
> collecting ... collected 11 items / 1 error
>
> ==================================== ERRORS ====================================
> _____________________ ERROR collecting tests/test_smtp.py ______________________
> ImportError while importing test module '/<<PKGBUILDDIR>>/tests/test_smtp.py'.
> Hint: make sure your test modules/packages have valid Python names.
> Traceback:
> /usr/lib/python3.12/importlib/__init__.py:90: in import_module
> return _bootstrap._gcd_import(name[level:], package, level)
> tests/test_smtp.py:8: in <module>
> from pytest_localserver import plugin, smtp
> pytest_localserver/smtp.py:10: in <module>
> import asyncore
> E ModuleNotFoundError: No module named 'asyncore'
> =========================== short test summary info ============================
> ERROR tests/test_smtp.py
> !!!!!!!!!!!!!!!!!!!!!!!!!! stopping after 1 failures !!!!!!!!!!!!!!!!!!!!!!!!!!!
> !!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!
> =============================== 1 error in 0.19s ===============================
> E: pybuild pybuild:395: test: plugin custom failed with: exit code=2: python3.12 -m pytest -v -x
> I: pybuild base:310: python3.11 -m pytest -v -x
> ============================= test session starts ==============================
> platform linux -- Python 3.11.7, pytest-7.4.3, pluggy-1.3.0 -- /usr/bin/python3.11
> cachedir: .pytest_cache
> rootdir: /<<PKGBUILDDIR>>
> plugins: localserver-0.5.0
> collecting ... collected 16 items
>
> tests/test_http.py::test_httpserver_funcarg PASSED [ 6%]
> tests/test_http.py::test_server_does_not_serve_file_at_startup PASSED [ 12%]
> tests/test_http.py::test_some_content_retrieval PASSED [ 18%]
> tests/test_http.py::test_request_is_stored PASSED [ 25%]
> tests/test_http.py::test_GET_request PASSED [ 31%]
> tests/test_http.py::test_HEAD_request PASSED [ 37%]
> tests/test_https.py::test_httpsserver_funcarg PASSED [ 43%]
> tests/test_https.py::test_server_does_not_serve_file_at_startup PASSED [ 50%]
> tests/test_https.py::test_some_content_retrieval PASSED [ 56%]
> tests/test_https.py::test_GET_request PASSED [ 62%]
> tests/test_https.py::test_HEAD_request PASSED [ 68%]
> tests/test_smtp.py::test_smtpserver_funcarg PASSED [ 75%]
> tests/test_smtp.py::test_server_is_killed PASSED [ 81%]
> tests/test_smtp.py::test_server_is_deleted PASSED [ 87%]
> tests/test_smtp.py::test_smtpserver_has_empty_outbox_at_startup PASSED [ 93%]
> tests/test_smtp.py::test_send_email PASSED [100%]
>
> =============================== warnings summary ===============================
> pytest_localserver/smtp.py:10
> /<<PKGBUILDDIR>>/pytest_localserver/smtp.py:10: DeprecationWarning: The asyncore module is deprecated and will be removed in Python 3.12. The recommended replacement is asyncio
> import asyncore
>
> pytest_localserver/smtp.py:12
> /<<PKGBUILDDIR>>/pytest_localserver/smtp.py:12: DeprecationWarning: The smtpd module is deprecated and unmaintained and will be removed in Python 3.12. Please see aiosmtpd (https://aiosmtpd.readthedocs.io/) for the recommended replacement.
> import smtpd
>
> ../../../usr/lib/python3.11/smtpd.py:97
> /usr/lib/python3.11/smtpd.py:97: DeprecationWarning: The asynchat module is deprecated and will be removed in Python 3.12. The recommended replacement is asyncio
> import asynchat
>
> tests/test_https.py::test_some_content_retrieval
> tests/test_https.py::test_GET_request
> tests/test_https.py::test_HEAD_request
> /usr/lib/python3/dist-packages/urllib3/connectionpool.py:1062: InsecureRequestWarning: Unverified HTTPS request is being made to host '127.0.0.1'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings
> warnings.warn(
>
> -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
> ======================== 16 passed, 6 warnings in 5.85s ========================
> dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.12 3.11" returned exit code 13
The full build log is available from:
http://qa-logs.debian.net/2023/12/12/pytest-localserver_0.5.0-4_unstable.log
All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20231212;users=lucas@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20231212&fusertaguser=lucas@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results
A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!
If you reassign this bug to another package, please mark it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects
If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.
Reply to: