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):
f.close()
self.assertEqual(d, b"foobar")
self.assertTrue(
genericpath.getctime(support.TESTFN) <=
self.assertLessEqual(
genericpath.getctime(support.TESTFN),
genericpath.getmtime(support.TESTFN)
)
finally:
......
......@@ -229,8 +229,8 @@ class PosixPathTest(unittest.TestCase):
f.close()
self.assertEqual(d, b"foobar")
self.assertTrue(
posixpath.getctime(support.TESTFN) <=
self.assertLessEqual(
posixpath.getctime(support.TESTFN),
posixpath.getmtime(support.TESTFN)
)
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