Source: pytest-testinfra
Version: 10.1.1-1
Severity: normal
User: [email protected]
Usertags: python3.13
Forwarded: https://github.com/pytest-dev/pytest-testinfra/pull/764

This package failed build from source when test-built against a version of
python3-defaults that includes 3.13 as a supported version.

To reproduce this issue, build against python3-defaults (python3-all-dev etc.)
from Debian experimental.

What's new in Python 3.13:
https://docs.python.org/3.13/whatsnew/3.13.html

Log snippet:

   debian/rules override_dh_auto_test
make[1]: Entering directory '/<<PKGBUILDDIR>>'
LC_ALL=C.UTF-8 LANG=C.UTF-8 dh_auto_test
I: pybuild base:311: cd 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_testinfra/build; python3.13 -m pytest 
test
============================= test session starts ==============================
platform linux -- Python 3.13.0rc2, pytest-8.3.3, pluggy-1.5.0
rootdir: /<<PKGBUILDDIR>>
configfile: setup.cfg
plugins: typeguard-4.3.0
collected 121 items / 1 error

==================================== ERRORS ====================================
_ ERROR collecting .pybuild/cpython3_3.13_testinfra/build/test/test_modules.py _
ImportError while importing test module 
'/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_testinfra/build/test/test_modules.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.13/importlib/__init__.py:88: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
test/test_modules.py:13: in <module>
    import crypt
E   ModuleNotFoundError: No module named 'crypt'
=============================== warnings summary ===============================
test/test_backends.py:59
  
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_testinfra/build/test/test_backends.py:59:
 PytestUnknownMarkWarning: Unknown pytest.mark.testinfra_hosts - is this a 
typo?  You can register custom marks to avoid this warning - for details, see 
https://docs.pytest.org/en/stable/how-to/mark.html
    @pytest.mark.testinfra_hosts(*(HOSTS + USER_HOSTS + SUDO_HOSTS + 
SUDO_USER_HOSTS))

test/test_backends.py:76
  
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_testinfra/build/test/test_backends.py:76:
 PytestUnknownMarkWarning: Unknown pytest.mark.testinfra_hosts - is this a 
typo?  You can register custom marks to avoid this warning - for details, see 
https://docs.pytest.org/en/stable/how-to/mark.html
    @pytest.mark.testinfra_hosts(*HOSTS)

test/test_backends.py:102
  
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_testinfra/build/test/test_backends.py:102:
 PytestUnknownMarkWarning: Unknown pytest.mark.testinfra_hosts - is this a 
typo?  You can register custom marks to avoid this warning - for details, see 
https://docs.pytest.org/en/stable/how-to/mark.html
    @pytest.mark.testinfra_hosts("ansible://debian_bookworm?force_ansible=True")

test/test_backends.py:114
  
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_testinfra/build/test/test_backends.py:114:
 PytestUnknownMarkWarning: Unknown pytest.mark.testinfra_hosts - is this a 
typo?  You can register custom marks to avoid this warning - for details, see 
https://docs.pytest.org/en/stable/how-to/mark.html
    @pytest.mark.testinfra_hosts(*(USER_HOSTS + SUDO_USER_HOSTS))

test/test_backends.py:119
  
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_testinfra/build/test/test_backends.py:119:
 PytestUnknownMarkWarning: Unknown pytest.mark.testinfra_hosts - is this a 
typo?  You can register custom marks to avoid this warning - for details, see 
https://docs.pytest.org/en/stable/how-to/mark.html
    @pytest.mark.testinfra_hosts(*SUDO_HOSTS)

test/test_backends.py:491
  
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_testinfra/build/test/test_backends.py:491:
 PytestUnknownMarkWarning: Unknown pytest.mark.testinfra_hosts - is this a 
typo?  You can register custom marks to avoid this warning - for details, see 
https://docs.pytest.org/en/stable/how-to/mark.html
    @pytest.mark.testinfra_hosts("docker://rockylinux9", "ssh://rockylinux9")

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================== short test summary info ============================
ERROR test/test_modules.py
!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!
========================= 6 warnings, 1 error in 0.42s =========================
E: pybuild pybuild:389: test: plugin distutils failed with: exit code=2: cd 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_testinfra/build; python3.13 -m pytest 
test


If required, the full build log is available here (for the next 30 days):
https://debusine.debian.net/artifact/779615/

This bug has been filed at "normal" severity, as we haven't started the
transition to add 3.13 as a supported version, yet. This will be raised to RC
as soon as that happens, hopefully well before trixie.

Thanks,

Stefano

Reply via email to