Skip to content

Fix tests with Python 3.9.17, 3.10.12 and 3.11.4 #1194

@diox

Description

@diox

The fixes in the latest minor versions of Python 3.9, 3.10 and 3.11 broke our tests. This is visible in the CI tests results for the django-compressor 4.4 release.

Changelogs:

The breakage occurs in offline compression tests that play with Django's get_script_prefix() and set_script_prefix(). My best guess is that something is cached that shouldn't be, or maybe something is meant to stay lazy and isn't. That feature and the tests is quite brittle, it depends on being able to render a dynamic STATIC_URL setting depending on the request.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions