mirror of https://github.com/python/cpython
Loosen the test for equal time stamps.
This commit is contained in:
parent
6eb36b0cfa
commit
cfcd3a9569
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue