mirror of
https://github.com/python/cpython.git
synced 2025-07-29 06:05:00 +00:00
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:
parent
88459359b1
commit
9bdc85f8bf
1 changed files with 1 additions and 1 deletions
|
@ -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))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue