Loosen the test for equal time stamps.

This commit is contained in:
Martin v. Löwis 2006-10-15 09:35:51 +00:00
parent 6eb36b0cfa
commit cfcd3a9569
1 changed files with 1 additions and 1 deletions

View File

@ -228,7 +228,7 @@ class StatAttributeTests(unittest.TestCase):
st = os.stat(test_support.TESTFN) st = os.stat(test_support.TESTFN)
os.utime(test_support.TESTFN, (st.st_atime, st.st_mtime-delta)) os.utime(test_support.TESTFN, (st.st_atime, st.st_mtime-delta))
st2 = os.stat(test_support.TESTFN) 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 # Restrict test to Win32, since there is no guarantee other
# systems support centiseconds # systems support centiseconds