[Zope-Checkins] CVS: ZODB3/ZODB/tests - testRecover.py:1.2.4.1.2.1

Tim Peters tim.one@comcast.net
Wed, 11 Jun 2003 18:45:09 -0400


Update of /cvs-repository/ZODB3/ZODB/tests
In directory cvs.zope.org:/tmp/cvs-serv2798/ZODB/tests

Modified Files:
      Tag: tim-loading_oids_status-branch
	testRecover.py 
Log Message:
testBadTransaction():  'False' doesn't work under Python 2.1.3.


=== ZODB3/ZODB/tests/testRecover.py 1.2.4.1 => 1.2.4.1.2.1 ===
--- ZODB3/ZODB/tests/testRecover.py:1.2.4.1	Fri May 23 12:32:39 2003
+++ ZODB3/ZODB/tests/testRecover.py	Wed Jun 11 18:45:09 2003
@@ -120,14 +120,14 @@
         L = self.storage.undoLog()
         r = L[3]
         tid = base64.decodestring(r["id"] + "\n")
-        pos1 = self.storage._txn_find(tid, False)
+        pos1 = self.storage._txn_find(tid, 0)
 
         r = L[8]
         tid = base64.decodestring(r["id"] + "\n")
-        pos2 = self.storage._txn_find(tid, False)
-        
+        pos2 = self.storage._txn_find(tid, 0)
+
         self.storage.close()
-        
+
         # Overwrite the entire header.
         f = open(self.path, "a+b")
         f.seek(pos1 - 50)