mirror of
https://github.com/python/cpython.git
synced 2025-08-01 15:43:13 +00:00
Remove e assertIs definitions and use correct assert* methods.
This commit is contained in:
parent
4cc80ca921
commit
e3467d5c96
6 changed files with 28 additions and 45 deletions
|
@ -5,9 +5,6 @@ import genericpath
|
|||
|
||||
class AllCommonTest(unittest.TestCase):
|
||||
|
||||
def assertIs(self, a, b):
|
||||
self.assertTrue(a is b)
|
||||
|
||||
def test_commonprefix(self):
|
||||
self.assertEqual(
|
||||
genericpath.commonprefix([]),
|
||||
|
@ -50,8 +47,8 @@ class AllCommonTest(unittest.TestCase):
|
|||
f.close()
|
||||
self.assertEqual(d, "foobar")
|
||||
|
||||
self.assertTrue(
|
||||
genericpath.getctime(test_support.TESTFN) <=
|
||||
self.assertLessEqual(
|
||||
genericpath.getctime(test_support.TESTFN),
|
||||
genericpath.getmtime(test_support.TESTFN)
|
||||
)
|
||||
finally:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue