[Zodb-checkins] CVS: Zope3/src/zodb/storage/tests - recovery.py:1.4.4.3

Jeremy Hylton jeremy@zope.com
Wed, 12 Mar 2003 12:17:55 -0500


Update of /cvs-repository/Zope3/src/zodb/storage/tests
In directory cvs.zope.org:/tmp/cvs-serv8019/storage/tests

Modified Files:
      Tag: opaque-pickles-branch
	recovery.py 
Log Message:
If data is None, then refs is None too.


=== Zope3/src/zodb/storage/tests/recovery.py 1.4.4.2 => 1.4.4.3 ===
--- Zope3/src/zodb/storage/tests/recovery.py:1.4.4.2	Mon Mar 10 18:06:41 2003
+++ Zope3/src/zodb/storage/tests/recovery.py	Wed Mar 12 12:17:22 2003
@@ -156,7 +156,10 @@
         final = list(iter)[-1]
         self._dst.tpcBegin(final, final.tid, final.status)
         for r in final:
-            self.assertEqual(findrefs(r.data), list(r.refs))
+            if r.data is None:
+                self.assert_(r.refs is None)
+            else:
+                self.assertEqual(findrefs(r.data), list(r.refs))
             self._dst.restore(r.oid, r.serial, r.data, r.version, r.data_txn,
                               r.refs, final)
         self._dst.tpcVote(final)