#1149920 django-redis: autopkgtest regression with pytest-django 4.14.0-1

#1149920#5
Date:
2026-10-04 09:56:21 UTC
From:
To:
Source: django-redis
Version: 5.4.0-2
Severity: serious
Tags: sid forky
X-Debbugs-Cc: sramacher@debian.org

Dear maintainer,

the autopkgtests of django-redis fail with pytest-django 4.14.0-1:

 72s autopkgtest [09:08:37]: test upstream: [-----------------------
 73s ============================= test session starts ==============================
 73s platform linux -- Python 3.14.7, pytest-9.1.1, pluggy-1.6.0
 73s django: version: 5.2.17, settings: settings.sqlite (from env)
 73s rootdir: /tmp/autopkgtest.Z5dO84/autopkgtest_tmp
 73s plugins: mock-3.15.1, django-4.14.0, cov-7.1.0
 73s collected 50 items / 3 errors
 73s
 73s ==================================== ERRORS ====================================
 73s ____________________ ERROR collecting tests/test_backend.py ____________________
 73s ImportError while importing test module '/tmp/autopkgtest.Z5dO84/autopkgtest_tmp/tests/test_backend.py'.
 73s Hint: make sure your test modules/packages have valid Python names.
 73s Traceback:
 73s /usr/lib/python3.14/importlib/__init__.py:88: in import_module
 73s     return _bootstrap._gcd_import(name[level:], package, level)
 73s            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 73s tests/test_backend.py:11: in <module>
 73s     from pytest_django.fixtures import SettingsWrapper
 73s E   ImportError: cannot import name 'SettingsWrapper' from 'pytest_django.fixtures' (/usr/lib/python3/dist-packages/pytest_django/fixtures.py)
 73s _________________ ERROR collecting tests/test_cache_options.py _________________
 73s ImportError while importing test module '/tmp/autopkgtest.Z5dO84/autopkgtest_tmp/tests/test_cache_options.py'.
 73s Hint: make sure your test modules/packages have valid Python names.
 73s Traceback:
 73s /usr/lib/python3.14/importlib/__init__.py:88: in import_module
 73s     return _bootstrap._gcd_import(name[level:], package, level)
 73s            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 73s tests/test_cache_options.py:7: in <module>
 73s     from pytest_django.fixtures import SettingsWrapper
 73s E   ImportError: cannot import name 'SettingsWrapper' from 'pytest_django.fixtures' (/usr/lib/python3/dist-packages/pytest_django/fixtures.py)
 73s ____________________ ERROR collecting tests/test_client.py _____________________
 73s ImportError while importing test module '/tmp/autopkgtest.Z5dO84/autopkgtest_tmp/tests/test_client.py'.
 73s Hint: make sure your test modules/packages have valid Python names.
 73s Traceback:
 73s /usr/lib/python3.14/importlib/__init__.py:88: in import_module
 73s     return _bootstrap._gcd_import(name[level:], package, level)
 73s            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 73s tests/test_client.py:6: in <module>
 73s     from pytest_django.fixtures import SettingsWrapper
 73s E   ImportError: cannot import name 'SettingsWrapper' from 'pytest_django.fixtures' (/usr/lib/python3/dist-packages/pytest_django/fixtures.py)
 73s =========================== short test summary info ============================
 73s ERROR tests/test_backend.py
 73s ERROR tests/test_cache_options.py
 73s ERROR tests/test_client.py
 73s !!!!!!!!!!!!!!!!!!! Interrupted: 3 errors during collection !!!!!!!!!!!!!!!!!!!!
 73s ============================== 3 errors in 0.29s ===============================
 73s autopkgtest [09:08:38]: test upstream: -----------------------]


See
https://ci.debian.net/packages/d/django-redis/testing/amd64/76309965/
for details.

Cheers