Commit 6acd4324 authored by Antoine Pitrou's avatar Antoine Pitrou

Use assertLessEqual to ease diagnosing of failures

parent e0e34bbb
...@@ -50,8 +50,8 @@ class AllCommonTest(unittest.TestCase): ...@@ -50,8 +50,8 @@ class AllCommonTest(unittest.TestCase):
f.close() f.close()
self.assertEqual(d, b"foobar") self.assertEqual(d, b"foobar")
self.assertTrue( self.assertLessEqual(
genericpath.getctime(support.TESTFN) <= genericpath.getctime(support.TESTFN),
genericpath.getmtime(support.TESTFN) genericpath.getmtime(support.TESTFN)
) )
finally: finally:
......
...@@ -229,8 +229,8 @@ class PosixPathTest(unittest.TestCase): ...@@ -229,8 +229,8 @@ class PosixPathTest(unittest.TestCase):
f.close() f.close()
self.assertEqual(d, b"foobar") self.assertEqual(d, b"foobar")
self.assertTrue( self.assertLessEqual(
posixpath.getctime(support.TESTFN) <= posixpath.getctime(support.TESTFN),
posixpath.getmtime(support.TESTFN) posixpath.getmtime(support.TESTFN)
) )
finally: finally:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment