diff Lib/test/test_array.py @ 37571:0bc3f74a4a47 legacy-trunk

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.
author Tim Peters <tim.peters@gmail.com>
date Mon, 10 Apr 2006 21:38:11 +0000
parents fdc05b167236
children a88bc3bad651 9bc0bc0ad1bf
line wrap: on
line diff
--- a/Lib/test/test_array.py	Mon Apr 10 21:34:00 2006 +0000
+++ b/Lib/test/test_array.py	Mon Apr 10 21:38:11 2006 +0000
@@ -61,7 +61,7 @@
         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))