Source: python-whitenoise
Version: 5.2.0-1
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: [email protected]
Usertags: ftbfs-20220326 ftbfs-bookworm
Hi,
During a rebuild of all packages in sid, your package failed to build
on amd64.
Relevant part (hopefully):
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> set -e; for python in $(py3versions --requested 2>/dev/null); do \
> DJANGO_SETTINGS_MODULE=tests.django_settings $python -m pytest; \
> done
> ============================= test session starts
> ==============================
> platform linux -- Python 3.10.4, pytest-6.2.5, py-1.10.0, pluggy-1.0.0
> rootdir: /<<PKGBUILDDIR>>, configfile: setup.cfg
> collected 108 items
>
> tests/test_compress.py ......... [
> 8%]
> tests/test_django_whitenoise.py ...F.................. [
> 28%]
> tests/test_runserver_nostatic.py . [
> 29%]
> tests/test_storage.py ..... [
> 34%]
> tests/test_whitenoise.py ..............................s................ [
> 77%]
> ........................
> [100%]
>
> =================================== FAILURES
> ===================================
> ________________________________ test_get_gzip
> _________________________________
>
> server = <tests.utils.AppServer object at 0x7f88f90cc8b0>
> static_files = <tests.utils.Files object at 0x7f88f90cee00>
> _collect_static = None
>
> def test_get_gzip(server, static_files, _collect_static):
> url = storage.staticfiles_storage.url(static_files.js_path)
> response = server.get(url)
> assert response.content == static_files.js_content
> > assert response.headers["Content-Encoding"] == "gzip"
> E AssertionError: assert 'br' == 'gzip'
> E - gzip
> E + br
>
> tests/test_django_whitenoise.py:103: AssertionError
> =============================== warnings summary
> ===============================
> ../../../usr/lib/python3/dist-packages/_pytest/config/__init__.py:1233
> /usr/lib/python3/dist-packages/_pytest/config/__init__.py:1233:
> PytestConfigWarning: Unknown config option: DJANGO_SETTINGS_MODULE
>
> self._warn_or_fail_if_strict(f"Unknown config option: {key}\n")
>
> tests/test_django_whitenoise.py::test_non_ascii_requests_safely_ignored[True]
> /<<PKGBUILDDIR>>/tests/django_urls.py:9: RemovedInDjango40Warning:
> django.conf.urls.url() is deprecated in favor of django.urls.re_path().
> urlpatterns = [url(r"^hello$", hello_world)]
>
> -- Docs: https://docs.pytest.org/en/stable/warnings.html
> =========================== short test summary info
> ============================
> FAILED tests/test_django_whitenoise.py::test_get_gzip - AssertionError:
> asser...
> ============= 1 failed, 106 passed, 1 skipped, 2 warnings in 0.66s
> =============
> make[1]: *** [debian/rules:14: override_dh_auto_test] Error 1
The full build log is available from:
http://qa-logs.debian.net/2022/03/26/python-whitenoise_5.2.0-1_unstable.log
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 marking 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.