Skip to content

Commit 03376d9

Browse files
author
tim.peters
committed
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. git-svn-id: http://svn.python.org/projects/python/trunk@45242 6015fed2-1504-0410-9fe1-9d1591cc4771
1 parent 72f15de commit 03376d9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/test/test_array.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def test_buffer_info(self):
6161
bi = a.buffer_info()
6262
self.assert_(isinstance(bi, tuple))
6363
self.assertEqual(len(bi), 2)
64-
self.assert_(isinstance(bi[0], int))
64+
self.assert_(isinstance(bi[0], (int, long)))
6565
self.assert_(isinstance(bi[1], int))
6666
self.assertEqual(bi[1], len(a))
6767

0 commit comments

Comments
 (0)