Commit 1b048698 authored by Tres Seaver's avatar Tres Seaver

Normalize out pickle sizes / offsets.

parent cf01843c
...@@ -28,16 +28,21 @@ checker = zope.testing.renormalizing.RENormalizing([ ...@@ -28,16 +28,21 @@ checker = zope.testing.renormalizing.RENormalizing([
(re.compile('b(".*?")'), r"\1"), (re.compile('b(".*?")'), r"\1"),
# Python 3 produces larger pickles, even when we use zodbpickle :( # Python 3 produces larger pickles, even when we use zodbpickle :(
# this changes all the offsets and sizes in fstail.txt # this changes all the offsets and sizes in fstail.txt
(re.compile("user='' description='' length=138 offset=190"), (re.compile("user='' description='' "
"user='' description='' length=132 offset=185"), "length=[0-9]+ offset=[0-9]+"),
(re.compile("user='' description='initial database creation' length=155 offset=52"), "user='' description='' "
"user='' description='initial database creation' length=150 offset=52"), "length=<LENGTH> offset=<OFFSET>"),
(re.compile("user='' description='initial database creation' "
"length=[0-9]+ offset=[0-9]+"),
"user='' description='initial database creation' "
"length=<<LENGTH> offset=<OFFSET>"),
]) ])
def test_suite(): def test_suite():
return unittest.TestSuite(( return unittest.TestSuite((
doctest.DocFileSuite( doctest.DocFileSuite(
'referrers.txt', 'fstail.txt', 'referrers.txt',
'fstail.txt',
setUp=ZODB.tests.util.setUp, tearDown=ZODB.tests.util.tearDown, setUp=ZODB.tests.util.setUp, tearDown=ZODB.tests.util.tearDown,
checker=checker), checker=checker),
)) ))
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment