diff options
author | Tim Peters <tim.peters@gmail.com> | 2006-04-10 21:38:11 +0000 |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2006-04-10 21:38:11 +0000 |
commit | 8370d40d6adecfdfdb4de56ad248f7fb9667bdba (patch) | |
tree | 154a94717582256b8caf3bca23ed376ceebc25f6 /Lib/test/test_array.py | |
parent | 8cb6bb86584890205455c591962b3f2a92ae4cd7 (diff) | |
download | cpython-8370d40d6adecfdfdb4de56ad248f7fb9667bdba.tar.gz |
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 87d395d555..62361fce8c 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)) |