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
|
@ -6,7 +6,7 @@ import genericpath
|
|||
class AllCommonTest(unittest.TestCase):
|
||||
|
||||
def assertIs(self, a, b):
|
||||
self.assert_(a is b)
|
||||
self.assertTrue(a is b)
|
||||
|
||||
def test_commonprefix(self):
|
||||
self.assertEqual(
|
||||
|
@ -50,7 +50,7 @@ class AllCommonTest(unittest.TestCase):
|
|||
f.close()
|
||||
self.assertEqual(d, "foobar")
|
||||
|
||||
self.assert_(
|
||||
self.assertTrue(
|
||||
genericpath.getctime(test_support.TESTFN) <=
|
||||
genericpath.getmtime(test_support.TESTFN)
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue