diff options
author | Marius Gedminas <marius@gedmin.as> | 2013-02-07 23:18:38 +0000 |
---|---|---|
committer | Marius Gedminas <marius@gedmin.as> | 2013-02-07 23:18:38 +0000 |
commit | c278af8b431e558883f3aa17fc3fcbe42697b826 (patch) | |
tree | 43ec00717e915b0ecf496031cd888d40eb99b935 | |
parent | bb7febeede25b601ebbb5a7a038ae9c9232e56db (diff) | |
download | zope-tal-c278af8b431e558883f3aa17fc3fcbe42697b826.tar.gz |
Explain the - parsing difference (it's the stdlib)
-rw-r--r-- | src/zope/tal/tests/test_talinterpreter.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/zope/tal/tests/test_talinterpreter.py b/src/zope/tal/tests/test_talinterpreter.py index 24c1b3c..3717851 100644 --- a/src/zope/tal/tests/test_talinterpreter.py +++ b/src/zope/tal/tests/test_talinterpreter.py @@ -709,13 +709,13 @@ class OutputPresentationTestCase(TestCaseBase): def test_entities(self): if sys.version_info < (3, 0): + # HTMLParser.HTMLParser in Python 2.x parses "-" as "-" INPUT = ('<img tal:define="foo nothing" ' 'alt="&a;  
 &a - &; <>" />') EXPECTED = ('<img alt="&a; \x01 \n ' '&a &#45 &; <>" />') else: - # XXX: why does - with no terminating ; become a - on - # Python 3.3 and is that acceptable or a regression? + # html.parser.HTMLParser in Python 3.3 parses "-" as "-" INPUT = ('<img tal:define="foo nothing" ' 'alt="&a;  
 &a - &; <>" />') EXPECTED = ('<img alt="&a; \x01 \n ' |