diff --git a/tests/utils_tests/test_html.py b/tests/utils_tests/test_html.py index 70de3a078e..0c6167ef50 100644 --- a/tests/utils_tests/test_html.py +++ b/tests/utils_tests/test_html.py @@ -80,12 +80,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('