Ignore a specific six-related import warning on Python 3.10 in tests.
Review Request #11930 — Created Jan. 12, 2022 and submitted
The version of
sixin all versions of Django can trigger the following
ImportWarningon Python 3.10:_SixMetaPathImporter.find_spec() not found; falling back to find_module()This wasn't an issue with the old test runner, but is being hit in
pytest, causing tests to fail.The simplest solution, unfortunately, is just to filter this out in
assertWarns. This implements that filter, fixing those tests.
Unit tests pass on all supported versions of Python.
- Change Summary:
-
Marked the regex strings as raw strings.
- Commits:
-
Summary ID 4d3a85b276b9ea11fd34e7af2b792eedf9124c53 cbf3902ae86bf4f1c95df8c1101950f8b2ac1e29 - Diff:
-
Revision 2 (+32)
Checks run (2 succeeded)
flake8
passed.
JSHint
passed.