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

Jim Fulton jim at zope.com
Tue Apr 12 09:41:45 EDT 2011


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

Changed:
  U   ZODB/branches/3.10/src/ZEO/tests/test_cache.py

-=-
Modified: ZODB/branches/3.10/src/ZEO/tests/test_cache.py
===================================================================
--- ZODB/branches/3.10/src/ZEO/tests/test_cache.py	2011-04-12 12:01:46 UTC (rev 121407)
+++ ZODB/branches/3.10/src/ZEO/tests/test_cache.py	2011-04-12 13:41:44 UTC (rev 121408)
@@ -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