mirror of
https://github.com/python/cpython.git
synced 2025-07-30 22:54:16 +00:00
convert usage of fail* to assert*
This commit is contained in:
parent
be96cf608f
commit
5c8da86f3a
268 changed files with 5017 additions and 5017 deletions
|
@ -71,7 +71,7 @@ class AugAssignTest(unittest.TestCase):
|
|||
y[1:2] += [1]
|
||||
|
||||
self.assertEquals(x, [1, 2, 1, 2, 3])
|
||||
self.assert_(x is y)
|
||||
self.assertTrue(x is y)
|
||||
|
||||
def testCustomMethods1(self):
|
||||
|
||||
|
@ -96,23 +96,23 @@ class AugAssignTest(unittest.TestCase):
|
|||
y = x
|
||||
x += 10
|
||||
|
||||
self.assert_(isinstance(x, aug_test))
|
||||
self.assert_(y is not x)
|
||||
self.assertTrue(isinstance(x, aug_test))
|
||||
self.assertTrue(y is not x)
|
||||
self.assertEquals(x.val, 11)
|
||||
|
||||
x = aug_test2(2)
|
||||
y = x
|
||||
x += 10
|
||||
|
||||
self.assert_(y is x)
|
||||
self.assertTrue(y is x)
|
||||
self.assertEquals(x.val, 12)
|
||||
|
||||
x = aug_test3(3)
|
||||
y = x
|
||||
x += 10
|
||||
|
||||
self.assert_(isinstance(x, aug_test3))
|
||||
self.assert_(y is not x)
|
||||
self.assertTrue(isinstance(x, aug_test3))
|
||||
self.assertTrue(y is not x)
|
||||
self.assertEquals(x.val, 13)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue