Commit 00894ea6 authored by Tim Peters's avatar Tim Peters

testBadTransaction(): 'False' doesn't work under Python 2.1.3.

parent 21058f0d
...@@ -120,14 +120,14 @@ class RecoverTest(unittest.TestCase): ...@@ -120,14 +120,14 @@ class RecoverTest(unittest.TestCase):
L = self.storage.undoLog() L = self.storage.undoLog()
r = L[3] r = L[3]
tid = base64.decodestring(r["id"] + "\n") tid = base64.decodestring(r["id"] + "\n")
pos1 = self.storage._txn_find(tid, False) pos1 = self.storage._txn_find(tid, 0)
r = L[8] r = L[8]
tid = base64.decodestring(r["id"] + "\n") tid = base64.decodestring(r["id"] + "\n")
pos2 = self.storage._txn_find(tid, False) pos2 = self.storage._txn_find(tid, 0)
self.storage.close() self.storage.close()
# Overwrite the entire header. # Overwrite the entire header.
f = open(self.path, "a+b") f = open(self.path, "a+b")
f.seek(pos1 - 50) f.seek(pos1 - 50)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment