summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_array.py
diff options
context:
space:
mode:
authorWalter Dörwald <walter@livinglogic.de>2007-05-03 21:05:51 (GMT)
committerWalter Dörwald <walter@livinglogic.de>2007-05-03 21:05:51 (GMT)
commitaa97f0496412ed834aada921e29588ed16d68e40 (patch)
treecfe74cb3cd3ed5a27cbcfa404ea9fc8c73fd63f1 /Lib/test/test_array.py
parent5d7a7001d9df605606b249b3e11707d6d1ad2e3d (diff)
downloadcpython-aa97f0496412ed834aada921e29588ed16d68e40.zip
cpython-aa97f0496412ed834aada921e29588ed16d68e40.tar.gz
cpython-aa97f0496412ed834aada921e29588ed16d68e40.tar.bz2
Fix various spots where int/long and str/unicode unification
lead to type checks like isinstance(foo, (str, str)) or isinstance(foo, (int, int)).
Diffstat (limited to 'Lib/test/test_array.py')
-rwxr-xr-xLib/test/test_array.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_array.py b/Lib/test/test_array.py
index b845570..5278f23 100755
--- a/Lib/test/test_array.py
+++ b/Lib/test/test_array.py
@@ -65,7 +65,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, int)))
+ self.assert_(isinstance(bi[0], int))
self.assert_(isinstance(bi[1], int))
self.assertEqual(bi[1], len(a))