diff --git a/tests/utils_tests/test_html.py b/tests/utils_tests/test_html.py index 5cf2992ac4..4865652da5 100644 --- a/tests/utils_tests/test_html.py +++ b/tests/utils_tests/test_html.py @@ -82,12 +82,18 @@ class TestUtilsHtml(TestCase): ('a

b

c', 'abc'), ('de

f', 'def'), ('foobar', 'foobar'), - ('ript>test</script>', 'test'), - ('&h', 'alert()&h'), ) for value, output in items: self.check_output(f, value, output) + # Some convoluted syntax for which parsing may differ between python versions + output = html.strip_tags('ript>test</script>') + self.assertNotIn('&h') + self.assertNotIn('