From cfcd3a9569f637523b48ee410c412b2c6f4d8155 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Sun, 15 Oct 2006 09:35:51 +0000 Subject: Loosen the test for equal time stamps. --- Lib/test/test_os.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py index 065d327..cf5f1d6 100644 --- a/Lib/test/test_os.py +++ b/Lib/test/test_os.py @@ -228,7 +228,7 @@ class StatAttributeTests(unittest.TestCase): st = os.stat(test_support.TESTFN) os.utime(test_support.TESTFN, (st.st_atime, st.st_mtime-delta)) st2 = os.stat(test_support.TESTFN) - self.assertEquals(st2.st_mtime, st.st_mtime-delta) + self.assertAlmostEquals(st2.st_mtime, st.st_mtime-delta, 2) # Restrict test to Win32, since there is no guarantee other # systems support centiseconds -- cgit v0.12