[Zodb-checkins] CVS: ZODB3/ZODB/tests - RevisionStorage.py:1.4.2.8
Tim Peters
cvs-admin at zope.org
Mon Dec 1 10:15:06 EST 2003
Update of /cvs-repository/ZODB3/ZODB/tests
In directory cvs.zope.org:/tmp/cvs-serv31776/ZODB/tests
Modified Files:
Tag: ZODB3-mvcc-2-branch
RevisionStorage.py
Log Message:
Use // for integer division.
=== ZODB3/ZODB/tests/RevisionStorage.py 1.4.2.7 => 1.4.2.8 ===
--- ZODB3/ZODB/tests/RevisionStorage.py:1.4.2.7 Mon Dec 1 10:09:21 2003
+++ ZODB3/ZODB/tests/RevisionStorage.py Mon Dec 1 10:15:02 2003
@@ -55,7 +55,7 @@
for i in range(1, 10):
tid = revs[i][2]
cur = u64(tid)
- middle = prev + (cur - prev) / 2
+ middle = prev + (cur - prev) // 2
assert prev < middle < cur # else the snooze() trick failed
prev = cur
t = self._storage.loadNonCurrent(oid, p64(middle))
More information about the Zodb-checkins
mailing list