diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2010-10-29 21:52:23 +0000 |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2010-10-29 21:52:23 +0000 |
commit | 6acd432457447973edcfe39550b9ee4fc52d3a27 (patch) | |
tree | 86fe5424b097a91eab293ab44249a4200ceec42f /Lib/test/test_posixpath.py | |
parent | e0e34bbb646ffa16d796230e7bee4a6c29c3e201 (diff) | |
download | cpython-6acd432457447973edcfe39550b9ee4fc52d3a27.tar.gz cpython-6acd432457447973edcfe39550b9ee4fc52d3a27.zip |
Use assertLessEqual to ease diagnosing of failures
Diffstat (limited to 'Lib/test/test_posixpath.py')
-rw-r--r-- | Lib/test/test_posixpath.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_posixpath.py b/Lib/test/test_posixpath.py index 6123ae25904..14146db4b21 100644 --- a/Lib/test/test_posixpath.py +++ b/Lib/test/test_posixpath.py @@ -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: |