SVN: ZODB/trunk/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 <20091001194250.45758941BB__262.97935187376$1254426179$gmane$org@cvs.zope.org>
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:
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.