From 6acd432457447973edcfe39550b9ee4fc52d3a27 Mon Sep 17 00:00:00 2001 From: Antoine Pitrou Date: Fri, 29 Oct 2010 21:52:23 +0000 Subject: [PATCH] Use assertLessEqual to ease diagnosing of failures --- Lib/test/test_genericpath.py | 4 ++-- Lib/test/test_posixpath.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Lib/test/test_genericpath.py b/Lib/test/test_genericpath.py index 3be9c8992b..089477c736 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 6123ae2590..14146db4b2 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: -- 2.40.0