diff options
| author | Jacob Walls <jacobtylerwalls@gmail.com> | 2026-01-28 16:36:20 -0500 |
|---|---|---|
| committer | Jacob Walls <jacobtylerwalls@gmail.com> | 2026-01-29 07:24:41 -0500 |
| commit | a28c3c739564ccc2aabc7b20211f54d838c7b582 (patch) | |
| tree | c8d1fdf15d7f6f87b02a7321406afc5ffffc21d9 | |
| parent | 4a439c65aabc3ea5c70c1fdcc1f9d59efe9260d8 (diff) | |
[4.2.x] Refs #36499 -- Adjusted test_strip_tags to run on Python 3.8.
| -rw-r--r-- | tests/utils_tests/test_html.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/utils_tests/test_html.py b/tests/utils_tests/test_html.py index c1786a9799..a5acc582f7 100644 --- a/tests/utils_tests/test_html.py +++ b/tests/utils_tests/test_html.py @@ -100,10 +100,9 @@ class TestUtilsHtml(SimpleTestCase): (3, 11): (3, 11, 14), (3, 10): (3, 10, 19), (3, 9): (3, 9, 24), + # Not fixed in 3.8. + (3, 8): (3, 8, math.inf), } - htmlparser_fixed_security = ( - sys.version_info >= min_fixed_security[sys.version_info[:2]] - ) # Similarly, there was a fix for terminating incomplete entities. See: # https://github.com/python/cpython/commit/95296a9d min_fixed_incomplete_entities = { @@ -114,6 +113,7 @@ class TestUtilsHtml(SimpleTestCase): (3, 11): (3, 11, math.inf), (3, 10): (3, 10, math.inf), (3, 9): (3, 9, math.inf), + (3, 8): (3, 8, math.inf), } major_version = sys.version_info[:2] htmlparser_fixed_security = sys.version_info >= min_fixed_security.get( |
