mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
Use assertLessEqual to ease diagnosing of failures
This commit is contained in:
parent
e0e34bbb64
commit
6acd432457
2 changed files with 4 additions and 4 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue