]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix one of the tests that fails on the "x86 OpenBSD trunk" buildbot,
authorTim Peters <tim.peters@gmail.com>
Mon, 10 Apr 2006 21:38:11 +0000 (21:38 +0000)
committerTim Peters <tim.peters@gmail.com>
Mon, 10 Apr 2006 21:38:11 +0000 (21:38 +0000)
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.

Lib/test/test_array.py

index 87d395d5559202bce662be829a8ca3aee4626787..62361fce8c69149ccbf2a91fe4266579b0c70a69 100755 (executable)
@@ -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))