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: http://git.ipfire.org/?a=commitdiff_plain;h=cfcd3a9569f637523b48ee410c412b2c6f4d8155;p=thirdparty%2FPython%2Fcpython.git Loosen the test for equal time stamps. --- diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py index 065d32707db5..cf5f1d6ab6df 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