Remove e assertIs definitions and use correct assert* methods.

This commit is contained in:
Ezio Melotti 2010-02-20 09:40:07 +00:00
parent 4cc80ca921
commit e3467d5c96
6 changed files with 28 additions and 45 deletions

View file

@ -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: