summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_genericpath.py
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2010-02-20 09:40:07 (GMT)
committerEzio Melotti <ezio.melotti@gmail.com>2010-02-20 09:40:07 (GMT)
commite3467d5c960f4ec5f0cca5dfa5b3a0a02a19cfb3 (patch)
tree29b385c56169f4ce3b1dada68bba84d65c3c8552 /Lib/test/test_genericpath.py
parent4cc80ca921b4f6bce11bd7eec8bc6b561aa9f524 (diff)
downloadcpython-e3467d5c960f4ec5f0cca5dfa5b3a0a02a19cfb3.zip
cpython-e3467d5c960f4ec5f0cca5dfa5b3a0a02a19cfb3.tar.gz
cpython-e3467d5c960f4ec5f0cca5dfa5b3a0a02a19cfb3.tar.bz2
Remove e assertIs definitions and use correct assert* methods.
Diffstat (limited to 'Lib/test/test_genericpath.py')
-rw-r--r--Lib/test/test_genericpath.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/Lib/test/test_genericpath.py b/Lib/test/test_genericpath.py
index c8f359d..bfd38d9 100644
--- a/Lib/test/test_genericpath.py
+++ b/Lib/test/test_genericpath.py
@@ -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: