mirror of
https://github.com/python/cpython.git
synced 2025-10-08 08:01:55 +00:00
convert old fail* assertions to assert*
This commit is contained in:
parent
98d23f2e06
commit
c9c0f201fe
275 changed files with 4540 additions and 4540 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, b"foobar")
|
||||
|
||||
self.assert_(
|
||||
self.assertTrue(
|
||||
genericpath.getctime(support.TESTFN) <=
|
||||
genericpath.getmtime(support.TESTFN)
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue