[Zodb-checkins] SVN: ZODB/trunk/src/ZODB/FileStorage/FileStorage.py Make sure stupid tests don't pass None instead of referencesf.

Jim Fulton jim at zope.com
Thu Oct 1 15:42:50 EDT 2009


Log message for revision 104708:
  Make sure stupid tests don't pass None instead of referencesf.
  

Changed:
  U   ZODB/trunk/src/ZODB/FileStorage/FileStorage.py

-=-
Modified: ZODB/trunk/src/ZODB/FileStorage/FileStorage.py
===================================================================
--- ZODB/trunk/src/ZODB/FileStorage/FileStorage.py	2009-10-01 19:42:47 UTC (rev 104707)
+++ ZODB/trunk/src/ZODB/FileStorage/FileStorage.py	2009-10-01 19:42:49 UTC (rev 104708)
@@ -12,8 +12,6 @@
 #
 ##############################################################################
 """Storage implementation using a log written to a single file.
-
-$Revision: 1.16 $
 """
 
 from cPickle import Pickler, Unpickler, loads
@@ -1076,6 +1074,7 @@
         # Our default packer is built around the original packer.  We
         # simply adapt the old interface to the new.  We don't really
         # want to invest much in the old packer, at least for now.
+        assert referencesf is not None
         p = FileStoragePacker(storage, referencesf, stop, gc)
         opos = p.pack()
         if opos is None:



More information about the Zodb-checkins mailing list