[Zodb-checkins] SVN: ZODB/trunk/src/BTrees/tests/testBTrees.py make
BTree family test pass on 64 bit machines
Gary Poster
gary at zope.com
Wed May 9 18:14:32 EDT 2007
Log message for revision 75659:
make BTree family test pass on 64 bit machines
Changed:
U ZODB/trunk/src/BTrees/tests/testBTrees.py
-=-
Modified: ZODB/trunk/src/BTrees/tests/testBTrees.py
===================================================================
--- ZODB/trunk/src/BTrees/tests/testBTrees.py 2007-05-09 20:45:50 UTC (rev 75658)
+++ ZODB/trunk/src/BTrees/tests/testBTrees.py 2007-05-09 22:14:31 UTC (rev 75659)
@@ -1709,11 +1709,13 @@
self.assertRaises(TypeError, s.insert, BTrees.family32.minint - 1)
else: # 64 bit Python
s.insert(BTrees.family32.maxint + 1)
- self.assert_(BTrees.family32.maxint + 1 not in s)
- # yeah, it's len of 1 now...don't look...don't look...
+ self.assert_(BTrees.family32.maxint + 1 not in list(s))
+ # yeah, it's len of 1 now, and rolled over to the minint...
+ # don't look...don't look...
s = IOTreeSet()
s.insert(BTrees.family32.minint - 1)
- self.assert_(BTrees.family32.minint - 1 not in s)
+ self.assert_(BTrees.family32.minint - 1 not in list(s))
+ # similarly, this is a len of 1, rolling over to the maxint...
self.check_pickling(BTrees.family32)
def test64(self):
More information about the Zodb-checkins
mailing list