SVN: ZODB/branches/3.9/src/ZODB/tests/testFileStorage.py Fixed stupid test bug. It's a but disturbing that the affected test

Jim Fulton <[email protected]>
Newsgroups gmane.comp.python.zope.zodb.cvs
Message-ID <20091001191728.AF5FA941BB__22133.4375477911$1254424661$gmane$org@cvs.zope.org>
Log message for revision 104696:
  Fixed stupid test bug. It's a but disturbing that the affected test
  usually passed. :(
  

Changed:
  U   ZODB/branches/3.9/src/ZODB/tests/testFileStorage.py

-=-
Modified: ZODB/branches/3.9/src/ZODB/tests/testFileStorage.py
===================================================================
--- ZODB/branches/3.9/src/ZODB/tests/testFileStorage.py	2009-10-01 18:48:49 UTC (rev 104695)
+++ ZODB/branches/3.9/src/ZODB/tests/testFileStorage.py	2009-10-01 19:17:28 UTC (rev 104696)
@@ -219,6 +219,7 @@
 
         from ZODB.utils import U64, p64
         from ZODB.FileStorage.format import CorruptedError
+        from ZODB.serialize import referencesf
 
         db = DB(self._storage)
         conn = db.open()
@@ -251,7 +252,7 @@
         # Try to pack.  This used to yield
         #     NameError: global name 's' is not defined
         try:
-            self._storage.pack(time.time(), None)
+            self._storage.pack(time.time(), referencesf)
         except CorruptedError, detail:
             self.assert_("redundant transaction length does not match "
                          "initial transaction length" in str(detail))
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.