summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2010-10-29 21:52:23 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2010-10-29 21:52:23 (GMT)
commit6acd432457447973edcfe39550b9ee4fc52d3a27 (patch)
tree86fe5424b097a91eab293ab44249a4200ceec42f
parente0e34bbb646ffa16d796230e7bee4a6c29c3e201 (diff)
downloadcpython-6acd432457447973edcfe39550b9ee4fc52d3a27.zip
cpython-6acd432457447973edcfe39550b9ee4fc52d3a27.tar.gz
cpython-6acd432457447973edcfe39550b9ee4fc52d3a27.tar.bz2
Use assertLessEqual to ease diagnosing of failures
-rw-r--r--Lib/test/test_genericpath.py4
-rw-r--r--Lib/test/test_posixpath.py4
2 files changed, 4 insertions, 4 deletions
diff --git a/Lib/test/test_genericpath.py b/Lib/test/test_genericpath.py
index 3be9c89..089477c 100644
--- a/Lib/test/test_genericpath.py
+++ b/Lib/test/test_genericpath.py
@@ -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:
diff --git a/Lib/test/test_posixpath.py b/Lib/test/test_posixpath.py
index 6123ae2..14146db 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: