question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

test_get_brotli failed in whitenoise 4.1.3

See original GitHub issue

I am getting the following test failures with the new release:

======================================================================
ERROR: test_get_brotli (tests.test_django_whitenoise.DjangoWhiteNoiseTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build/python-whitenoise/src/whitenoise-4.1.3/tests/test_django_whitenoise.py", line 94, in test_get_brotli
    self.assertEqual(brotli.decompress(response.content), self.static_files.js_content)
brotli.error: BrotliDecompress failed

----------------------------------------------------------------------

Test environment contains the following Arch Linux x86_64 packages:

Packages (13) python-appdirs-1.4.3-2  python-chardet-3.0.4-2  python-idna-2.8-1  python-packaging-19.0-1  python-pyparsing-2.4.0-1
              python-pytz-2019.1-1  python-six-1.12.0-1  python-sqlparse-0.2.4-2  python-urllib3-1.25.3-1  python-brotli-1.0.7-1
              python-django-2.2.3-1  python-requests-2.22.0-1  python-setuptools-1:41.0.1-1

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:18 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
dmsimardcommented, Sep 24, 2019

@evansd works for me, I managed to get a successful scratch build: https://koji.fedoraproject.org/koji/taskinfo?taskID=37843426

I can submit the updated spec to get the successful build into the distro as soon as 4.1.4 is tagged. Thanks a lot for your help 😃

1reaction
dmsimardcommented, Sep 16, 2019

@evansd It looks like the issue no longer occurs on master with https://github.com/evansd/whitenoise/commit/ca6714490aa5d8143d1e96ca6f7fbf7de7482e5f.

Would it be possible to tag and ship a release with this commit ? It’ll allow me to fix the chain of failed builds in Fedora.

Thanks !

Read more comments on GitHub >

github_iconTop Results From Across the Web

whitenoise - PyPI
Radically simplified static file serving for Python web apps. With a couple of lines of config WhiteNoise allows your web app to serve...
Read more >
Changelog - WhiteNoise 6.2.0 documentation
WhiteNoise is now tested on Python 3.5–3.8 and Django 2.0–3.0. ... More helpful error message when STATIC_URL is set to the root of...
Read more >
'collectstatic' command fails when WhiteNoise is enabled
The problem here is that css/iconic/open-iconic-bootstrap.css is referencing a file, open-iconic.eot , which doesn't exist in the expected ...
Read more >
Django and Static Assets | Heroku Dev Center
See the WhiteNoise Django documentation for more details. ... A build will fail if the collectstatic step is not successful.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found