diff options
Diffstat (limited to 'Lib/test/list_tests.py')
-rw-r--r-- | Lib/test/list_tests.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/list_tests.py b/Lib/test/list_tests.py index 12f4e8f..e3a7845 100644 --- a/Lib/test/list_tests.py +++ b/Lib/test/list_tests.py @@ -337,7 +337,7 @@ class CommonTest(seq_tests.CommonTest): self.assertRaises(BadExc, d.remove, 'c') for x, y in zip(d, e): # verify that original order and values are retained. - self.assert_(x is y) + self.assertIs(x, y) def test_count(self): a = self.type2test([0, 1, 2])*3 @@ -482,7 +482,7 @@ class CommonTest(seq_tests.CommonTest): u = self.type2test([0, 1]) u2 = u u += [2, 3] - self.assert_(u is u2) + self.assertIs(u, u2) u = self.type2test("spam") u += "eggs" |