Commit 8faf6aa4 authored by Jim Fulton's avatar Jim Fulton

Fixed stupid test bug. It's a but disturbing that the affected test

usually passed. :(
parent 8317fe75
...@@ -219,6 +219,7 @@ class FileStorageTests( ...@@ -219,6 +219,7 @@ class FileStorageTests(
from ZODB.utils import U64, p64 from ZODB.utils import U64, p64
from ZODB.FileStorage.format import CorruptedError from ZODB.FileStorage.format import CorruptedError
from ZODB.serialize import referencesf
db = DB(self._storage) db = DB(self._storage)
conn = db.open() conn = db.open()
...@@ -251,7 +252,7 @@ class FileStorageTests( ...@@ -251,7 +252,7 @@ class FileStorageTests(
# Try to pack. This used to yield # Try to pack. This used to yield
# NameError: global name 's' is not defined # NameError: global name 's' is not defined
try: try:
self._storage.pack(time.time(), None) self._storage.pack(time.time(), referencesf)
except CorruptedError, detail: except CorruptedError, detail:
self.assert_("redundant transaction length does not match " self.assert_("redundant transaction length does not match "
"initial transaction length" in str(detail)) "initial transaction length" in str(detail))
......
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