summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Lib/test/test_os.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py
index 065d327..cf5f1d6 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