summaryrefslogtreecommitdiff
path: root/Lib/test/test_array.py
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2010-11-20 19:04:17 +0000
committerEzio Melotti <ezio.melotti@gmail.com>2010-11-20 19:04:17 +0000
commitb3aedd48621ed9d33b5f42f946b256bce4a50673 (patch)
tree2297c8ebce1b09621e1d98096c1603896d9a0f0c /Lib/test/test_array.py
parentb8bc439b2093add9b313bcca2cc507a2d0e87764 (diff)
downloadcpython-git-b3aedd48621ed9d33b5f42f946b256bce4a50673.tar.gz
#9424: Replace deprecated assert* methods in the Python test suite.
Diffstat (limited to 'Lib/test/test_array.py')
-rwxr-xr-xLib/test/test_array.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/test/test_array.py b/Lib/test/test_array.py
index d7b4fa8547..1cce991318 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