diff options
Diffstat (limited to 'Lib/test/test_array.py')
-rwxr-xr-x | Lib/test/test_array.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/test/test_array.py b/Lib/test/test_array.py index d7b4fa8..1cce991 100755 --- a/Lib/test/test_array.py +++ b/Lib/test/test_array.py @@ -238,9 +238,9 @@ class BaseTest(unittest.TestCase): def test_reduce_ex(self): a = array.array(self.typecode, self.example) for protocol in range(3): - self.assert_(a.__reduce_ex__(protocol)[0] is array.array) + self.assertIs(a.__reduce_ex__(protocol)[0], array.array) for protocol in range(3, pickle.HIGHEST_PROTOCOL): - self.assert_(a.__reduce_ex__(protocol)[0] is array_reconstructor) + self.assertIs(a.__reduce_ex__(protocol)[0], array_reconstructor) def test_pickle(self): for protocol in range(pickle.HIGHEST_PROTOCOL + 1): @@ -785,11 +785,11 @@ class BaseTest(unittest.TestCase): data.reverse() L[start:stop:step] = data a[start:stop:step] = array.array(self.typecode, data) - self.assertEquals(a, array.array(self.typecode, L)) + self.assertEqual(a, array.array(self.typecode, L)) del L[start:stop:step] del a[start:stop:step] - self.assertEquals(a, array.array(self.typecode, L)) + self.assertEqual(a, array.array(self.typecode, L)) def test_index(self): example = 2*self.example |