[Checkins]
SVN: zope.tales/branches/nikhil_n-py25/src/zope/tales/tests/test_tales.py
made zope.tales work with Python 2.5
nikhil n
nikhil.n.n at gmail.com
Sat Jul 7 11:53:37 EDT 2007
Log message for revision 77576:
made zope.tales work with Python 2.5
Changed:
U zope.tales/branches/nikhil_n-py25/src/zope/tales/tests/test_tales.py
-=-
Modified: zope.tales/branches/nikhil_n-py25/src/zope/tales/tests/test_tales.py
===================================================================
--- zope.tales/branches/nikhil_n-py25/src/zope/tales/tests/test_tales.py 2007-07-07 15:49:07 UTC (rev 77575)
+++ zope.tales/branches/nikhil_n-py25/src/zope/tales/tests/test_tales.py 2007-07-07 15:53:37 UTC (rev 77576)
@@ -172,10 +172,17 @@
self._testcase.assert_(akwargs == kwargs,
"Harness method keyword args")
+from zope.testing import renormalizing
+import re
def test_suite():
+
+ checker = renormalizing.RENormalizing([
+ (re.compile(r"object of type 'MyIter' has no len\(\)"),
+ r"len() of unsized object"),
+ ])
suite = unittest.makeSuite(TALESTests)
- suite.addTest(DocTestSuite("zope.tales.tales"))
+ suite.addTest(DocTestSuite("zope.tales.tales",checker=checker))
return suite
More information about the Checkins
mailing list