[Checkins] SVN:	zc.async/branches/matt-python-versions/src/zc/async/tests.py	Added renormalizing to make test result format uniform	between Py versions.
    matt@zope.com 
    cvs-admin at zope.org
       
    Tue Nov 25 12:56:44 EST 2008
    
    
  
Log message for revision 93348:
  Added renormalizing to make test result format uniform between Py versions.
  
Changed:
  U   zc.async/branches/matt-python-versions/src/zc/async/tests.py
-=-
Modified: zc.async/branches/matt-python-versions/src/zc/async/tests.py
===================================================================
--- zc.async/branches/matt-python-versions/src/zc/async/tests.py	2008-11-25 16:41:32 UTC (rev 93347)
+++ zc.async/branches/matt-python-versions/src/zc/async/tests.py	2008-11-25 17:56:44 UTC (rev 93348)
@@ -132,6 +132,12 @@
     True
     """
 
+checker = renormalizing.RENormalizing([
+                (re.compile('\d+\.\d+'), '1216179006.856108'),
+                (re.compile('<type \''), ''),
+                (re.compile('\'>'), ''),
+                (re.compile('<class \''), '')
+                ])
 
 def test_suite():
     return unittest.TestSuite((
@@ -153,8 +159,7 @@
             'QUICKSTART_1_VIRTUALENV.txt',
             setUp=modSetUp, tearDown=modTearDown,
             optionflags=doctest.INTERPRET_FOOTNOTES,
-            checker = renormalizing.RENormalizing([ # used by QUICKSTART only
-                (re.compile('\d+\.\d+'), '1216179006.856108')])),
+            checker = checker),
         ))
 
 
    
    
More information about the Checkins
mailing list