[Zodb-checkins] CVS: ZODB3/ZODB/tests - testRecover.py:1.3
Tim Peters
tim.one at comcast.net
Fri May 30 17:00:28 EDT 2003
Update of /cvs-repository/ZODB3/ZODB/tests
In directory cvs.zope.org:/tmp/cvs-serv31416/ZODB/tests
Modified Files:
testRecover.py
Log Message:
testBadTransaction(): 'False' doesn't work under Python 2.1.3.
=== ZODB3/ZODB/tests/testRecover.py 1.2 => 1.3 ===
--- ZODB3/ZODB/tests/testRecover.py:1.2 Thu May 1 18:51:37 2003
+++ ZODB3/ZODB/tests/testRecover.py Fri May 30 16:00:27 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)
More information about the Zodb-checkins
mailing list