Mercurial > cpython-lru_cache-weakref
diff Lib/test/test_array.py @ 58472:6ffcdafa0118 legacy-trunk
use assert[Not]IsInstance where appropriate
| author | Ezio Melotti <ezio.melotti@gmail.com> |
|---|---|
| date | Sun, 24 Jan 2010 16:58:36 +0000 |
| parents | 0dd1aa33265f |
| children | c57998e3be33 |
line wrap: on
line diff
--- a/Lib/test/test_array.py Sun Jan 24 00:33:32 2010 +0000 +++ b/Lib/test/test_array.py Sun Jan 24 16:58:36 2010 +0000 @@ -63,10 +63,10 @@ a = array.array(self.typecode, self.example) self.assertRaises(TypeError, a.buffer_info, 42) bi = a.buffer_info() - self.assertTrue(isinstance(bi, tuple)) + self.assertIsInstance(bi, tuple) self.assertEqual(len(bi), 2) - self.assertTrue(isinstance(bi[0], (int, long))) - self.assertTrue(isinstance(bi[1], int)) + self.assertIsInstance(bi[0], (int, long)) + self.assertIsInstance(bi[1], int) self.assertEqual(bi[1], len(a)) def test_byteswap(self):
