diff options
author | Tim Peters <tim.peters@gmail.com> | 2006-04-10 21:38:11 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2006-04-10 21:38:11 (GMT) |
commit | 9bdc85f8bfbb99f374df8654e3f6201f73f37ee6 (patch) | |
tree | cd8d4d537a56f59d5f4c345bb164953845eb27f2 /Lib/test/test_array.py | |
parent | 88459359b160741c7abcad38a97db65004430125 (diff) | |
download | cpython-9bdc85f8bfbb99f374df8654e3f6201f73f37ee6.zip cpython-9bdc85f8bfbb99f374df8654e3f6201f73f37ee6.tar.gz cpython-9bdc85f8bfbb99f374df8654e3f6201f73f37ee6.tar.bz2 |
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.
Diffstat (limited to 'Lib/test/test_array.py')
-rwxr-xr-x | Lib/test/test_array.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_array.py b/Lib/test/test_array.py index 87d395d..62361fc 100755 --- a/Lib/test/test_array.py +++ b/Lib/test/test_array.py @@ -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)) |