SVN: ZODB/branches/3.9/src/ZODB/FileStorage/FileStorage.py Make sure stupid tests don't pass None instead of referencesf.

Jim Fulton <[email protected]>
Newsgroups gmane.comp.python.zope.zodb.cvs
Message-ID <[email protected]>
Log message for revision 104697:
  Make sure stupid tests don't pass None instead of referencesf.
  

Changed:
  U   ZODB/branches/3.9/src/ZODB/FileStorage/FileStorage.py

-=-
Modified: ZODB/branches/3.9/src/ZODB/FileStorage/FileStorage.py
===================================================================
--- ZODB/branches/3.9/src/ZODB/FileStorage/FileStorage.py	2009-10-01 19:17:28 UTC (rev 104696)
+++ ZODB/branches/3.9/src/ZODB/FileStorage/FileStorage.py	2009-10-01 19:18:28 UTC (rev 104697)
@@ -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:
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.