From: Martin v. Löwis Date: Sun, 15 Oct 2006 09:35:51 +0000 (+0000) Subject: Loosen the test for equal time stamps. X-Git-Tag: v2.6a1~2561 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cfcd3a9569f637523b48ee410c412b2c6f4d8155;p=python Loosen the test for equal time stamps. --- diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py index 065d32707d..cf5f1d6ab6 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