[Zodb-checkins] SVN: ZODB/trunk/src/ZEO/tests/test_cache.py Added renomalizing to deal w spurious error due to rounding

Jim Fulton jim at zope.com
Wed Apr 13 11:39:52 EDT 2011


Log message for revision 121418:
  Added renomalizing to deal w spurious error due to rounding
  difference.
  

Changed:
  U   ZODB/trunk/src/ZEO/tests/test_cache.py

-=-
Modified: ZODB/trunk/src/ZEO/tests/test_cache.py
===================================================================
--- ZODB/trunk/src/ZEO/tests/test_cache.py	2011-04-13 11:08:54 UTC (rev 121417)
+++ ZODB/trunk/src/ZEO/tests/test_cache.py	2011-04-13 15:39:52 UTC (rev 121418)
@@ -16,6 +16,7 @@
 from ZODB.utils import p64, repr_to_oid
 import doctest
 import os
+import re
 import string
 import struct
 import sys
@@ -24,6 +25,7 @@
 import ZEO.cache
 import ZODB.tests.util
 import zope.testing.setupstack
+import zope.testing.renormalizing
 
 import ZEO.cache
 from ZODB.utils import p64, u64, z64
@@ -1132,6 +1134,9 @@
         doctest.DocTestSuite(
             setUp=zope.testing.setupstack.setUpDirectory,
             tearDown=zope.testing.setupstack.tearDown,
+            checker=zope.testing.renormalizing.RENormalizing([
+                (re.compile(r'31\.3%'), '31.2%'),
+                ]),
             )
         )
     return suite



More information about the Zodb-checkins mailing list