Commit cfcd3a95 authored by Martin v. Löwis's avatar Martin v. Löwis

Loosen the test for equal time stamps.

parent 6eb36b0c
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment