From 6a0291bdaf43e5467a524dcc67f85b55f36fe46f Mon Sep 17 00:00:00 2001
From: Claude Paroz
Date: Sat, 22 Mar 2014 14:41:45 +0100
Subject: [PATCH] Tweaked strip_tags tests to pass on Python 3.3
---
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 70de3a078e..0c6167ef50 100644
--- a/tests/utils_tests/test_html.py
+++ b/tests/utils_tests/test_html.py
@@ -80,12 +80,18 @@ class TestUtilsHtml(TestCase):
('ab
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('