Fix one of the tests that fails on the "x86 OpenBSD trunk" buildbot,

due to that id() may return a long on a 32-bit box now.  On a box that
assigns addresses "with the sign bit set", id() always returns a long now.
This commit is contained in:
Tim Peters 2006-04-10 21:38:11 +00:00
parent 88459359b1
commit 9bdc85f8bf

View file

@ -61,7 +61,7 @@ class BaseTest(unittest.TestCase):
bi = a.buffer_info()
self.assert_(isinstance(bi, tuple))
self.assertEqual(len(bi), 2)
self.assert_(isinstance(bi[0], int))
self.assert_(isinstance(bi[0], (int, long)))
self.assert_(isinstance(bi[1], int))
self.assertEqual(bi[1], len(a))