From 07d4b3c8f28eb73bdbf2b1f61990daf01880e46b Mon Sep 17 00:00:00 2001 From: Claude Paroz Date: Sat, 22 Mar 2014 14:41:45 +0100 Subject: [PATCH] [1.7.x] Tweaked strip_tags tests to pass on Python 3.3 Backport of 6a0291bdaf from master. --- tests/utils_tests/test_html.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tests/utils_tests/test_html.py b/tests/utils_tests/test_html.py index 5cf2992ac41..4865652da5e 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('