From 9bdc85f8bfbb99f374df8654e3f6201f73f37ee6 Mon Sep 17 00:00:00 2001 From: Tim Peters Date: Mon, 10 Apr 2006 21:38:11 +0000 Subject: [PATCH] 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. --- Lib/test/test_array.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) -- 2.40.0