Commit a60e55ee authored by Tres Seaver's avatar Tres Seaver

Fix tests under py3k.

parent 73ccff24
......@@ -497,8 +497,13 @@ class _Persistent_Base(object):
inst = self._makeOne()
self.assertRaises(TypeError,
lambda : setattr(inst, '_p_estimated_size', None))
self.assertRaises(TypeError,
lambda : setattr(inst, '_p_estimated_size', 1L))
try:
long
except NameError:
pass
else:
self.assertRaises(TypeError,
lambda : setattr(inst, '_p_estimated_size', long(1)))
def test_assign_p_estimated_size_negative(self):
inst = self._makeOne()
......
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