SVN: ZODB/trunk/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 <[email protected]>
Log message for revision 104707:
  Fixed stupid test bug. It's a but disturbing that the affected test
  usually passed. :(
  

Changed:
  U   ZODB/trunk/src/ZODB/tests/testFileStorage.py

-=-
Modified: ZODB/trunk/src/ZODB/tests/testFileStorage.py
===================================================================
--- ZODB/trunk/src/ZODB/tests/testFileStorage.py	2009-10-01 19:42:46 UTC (rev 104706)
+++ ZODB/trunk/src/ZODB/tests/testFileStorage.py	2009-10-01 19:42:47 UTC (rev 104707)
@@ -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.