diff options
Diffstat (limited to 'src/zope/tal/tests/test_talinterpreter.py')
-rw-r--r-- | src/zope/tal/tests/test_talinterpreter.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/zope/tal/tests/test_talinterpreter.py b/src/zope/tal/tests/test_talinterpreter.py index 3717851..1a77453 100644 --- a/src/zope/tal/tests/test_talinterpreter.py +++ b/src/zope/tal/tests/test_talinterpreter.py @@ -714,12 +714,19 @@ class OutputPresentationTestCase(TestCaseBase): 'alt="&a;  
 &a - &; <>" />') EXPECTED = ('<img alt="&a; \x01 \n ' '&a &#45 &; <>" />') - else: + elif sys.version_info < (3, 4): # html.parser.HTMLParser in Python 3.3 parses "-" as "-" INPUT = ('<img tal:define="foo nothing" ' 'alt="&a;  
 &a - &; <>" />') EXPECTED = ('<img alt="&a; \x01 \n ' '&a - &; <>" />') + else: + # html.parser.HTMLParser in Python 3.4 parses "" as "" + # because '1' is an "invalid codepoint". + INPUT = ('<img tal:define="foo nothing" ' + 'alt="&a;  
 &a - &; <>" />') + EXPECTED = ('<img alt="&a; \n ' + '&a - &; <>" />') self.compare(INPUT, EXPECTED) def compare(self, INPUT, EXPECTED): |