SVN: ZODB/trunk/src/ZEO/tests/test_cache.py Added renomalizing to deal w spurious error due to rounding
Jim Fulton <[email protected]> Wed, 13 Apr 2011 11:39:52 -0400 (EDT)
| Newsgroups | gmane.comp.python.zope.zodb.cvs |
|---|---|
| Message-ID | <20110413153952.9298C9408C__14490.0048304864$1302709208$gmane$org@cvs.zope.org> |
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