[Checkins] SVN: manuel/trunk/src/manuel/tests.py Get the tests passing on Python 2.7

Patrick Strawderman patrick at zope.com
Wed Jul 21 18:48:33 EDT 2010


Log message for revision 114906:
  Get the tests passing on Python 2.7

Changed:
  U   manuel/trunk/src/manuel/tests.py

-=-
Modified: manuel/trunk/src/manuel/tests.py
===================================================================
--- manuel/trunk/src/manuel/tests.py	2010-07-21 16:59:36 UTC (rev 114905)
+++ manuel/trunk/src/manuel/tests.py	2010-07-21 22:48:33 UTC (rev 114906)
@@ -8,11 +8,16 @@
 import os.path
 import re
 import unittest
+import zope.testing.renormalizing
 
 doctest = manuel.absolute_import('doctest')
 
 here = os.path.dirname(os.path.abspath(__file__))
 
+checker = zope.testing.renormalizing.RENormalizing([
+    (re.compile(r"<unittest\.result\.TestResult"), '<unittest.TestResult'),
+    ])
+
 def test_suite():
     tests = ['../index.txt', 'table-example.txt', 'README.txt', 'bugs.txt',
         'capture.txt']
@@ -20,7 +25,7 @@
     optionflags = doctest.NORMALIZE_WHITESPACE | doctest.ELLIPSIS
 
     m = manuel.ignore.Manuel()
-    m += manuel.doctest.Manuel(optionflags=optionflags)
+    m += manuel.doctest.Manuel(optionflags=optionflags, checker=checker)
     m += manuel.codeblock.Manuel()
     m += manuel.capture.Manuel()
     m += manuel.testcase.SectionManuel()



More information about the checkins mailing list