[Checkins] SVN: zope.tal/trunk/ Update tests of "bad" entities for compatibility with the stricter
Tres Seaver
tseaver at palladion.com
Wed Apr 8 08:35:43 EDT 2009
Log message for revision 99007:
Update tests of "bad" entities for compatibility with the stricter
HTMLParser module shipped with Python 2.6.x.
Prep 3.5.1 release.
Changed:
U zope.tal/trunk/CHANGES.txt
U zope.tal/trunk/setup.py
U zope.tal/trunk/src/zope/tal/tests/test_talinterpreter.py
-=-
Modified: zope.tal/trunk/CHANGES.txt
===================================================================
--- zope.tal/trunk/CHANGES.txt 2009-04-08 12:11:40 UTC (rev 99006)
+++ zope.tal/trunk/CHANGES.txt 2009-04-08 12:35:42 UTC (rev 99007)
@@ -2,6 +2,13 @@
CHANGES
=======
+3.5.1 (2009-03-08)
+------------------
+
+- Updated tests of "bad" entities for compatibility with the stricter
+ HTMLParser module shipped with Python 2.6.x.
+
+
3.5.0 (2008-06-06)
------------------
Modified: zope.tal/trunk/setup.py
===================================================================
--- zope.tal/trunk/setup.py 2009-04-08 12:11:40 UTC (rev 99006)
+++ zope.tal/trunk/setup.py 2009-04-08 12:35:42 UTC (rev 99007)
@@ -41,7 +41,7 @@
return TestSuite(suites)
setup(name='zope.tal',
- version = '3.5.1dev',
+ version = '3.5.1',
author='Zope Corporation and Contributors',
author_email='zope-dev at zope.org',
description='Zope 3 Template Application Languate (TAL)',
Modified: zope.tal/trunk/src/zope/tal/tests/test_talinterpreter.py
===================================================================
--- zope.tal/trunk/src/zope/tal/tests/test_talinterpreter.py 2009-04-08 12:11:40 UTC (rev 99006)
+++ zope.tal/trunk/src/zope/tal/tests/test_talinterpreter.py 2009-04-08 12:35:42 UTC (rev 99007)
@@ -706,10 +706,16 @@
self.compare(INPUT, EXPECTED)
def test_entities(self):
- INPUT = ('<img tal:define="foo nothing" '
- 'alt="&a;  
 &a - &; �a; <>" />')
- EXPECTED = ('<img alt="&a;  
 '
- '&a &#45 &; &#0a; <>" />')
+ if sys.version_info < (2, 6):
+ INPUT = ('<img tal:define="foo nothing" '
+ 'alt="&a;  
 &a - &; �a; <>" />')
+ EXPECTED = ('<img alt="&a;  
 '
+ '&a &#45 &; &#0a; <>" />')
+ else:
+ INPUT = ('<img tal:define="foo nothing" '
+ 'alt="&a;  
 &a - &; <>" />')
+ EXPECTED = ('<img alt="&a; \x01 \n '
+ '&a &#45 &; <>" />')
self.compare(INPUT, EXPECTED)
def compare(self, INPUT, EXPECTED):
More information about the Checkins
mailing list