Commit 11a51d2a authored by Jim Fulton's avatar Jim Fulton

added back test mistakedly removed.

We have to check both TypeError and OverflowError. On Python3 32-bit,
we'll get an OverflowError, otherwise, we get type error.
parent be19c1f3
......@@ -453,13 +453,13 @@ class FamilyTest(unittest.TestCase):
# this next bit illustrates an, um, "interesting feature". If
# the characteristics change to match the 64 bit version, please
# feel free to change.
big = BTrees.family32.maxint + 1
if python3:
expected_exception = OverflowError
else:
expected_exception = TypeError
self.assertRaises(expected_exception, s.insert,
BTrees.family32.minint - 1)
try: s.insert(BTrees.family32.maxint + 1)
except (TypeError, OverflowError): pass
else: self.assert_(False)
try: s.insert(BTrees.family32.minint - 1)
except (TypeError, OverflowError): pass
else: self.assert_(False)
self.check_pickling(BTrees.family32)
def test64(self):
......
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