[Python-checkins] r45242 - python/trunk/Lib/test/test_array.py
tim.peters
python-checkins at python.org
Mon Apr 10 23:38:11 CEST 2006
Author: tim.peters
Date: Mon Apr 10 23:38:11 2006
New Revision: 45242
Modified:
python/trunk/Lib/test/test_array.py
Log:
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.
Modified: python/trunk/Lib/test/test_array.py
==============================================================================
--- python/trunk/Lib/test/test_array.py (original)
+++ python/trunk/Lib/test/test_array.py Mon Apr 10 23:38:11 2006
@@ -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))
More information about the Python-checkins
mailing list