summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_os.py
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2006-10-15 09:35:51 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2006-10-15 09:35:51 (GMT)
commitcfcd3a9569f637523b48ee410c412b2c6f4d8155 (patch)
tree6d5edbfbe5b4463cfcdf03ad452038f4b9b114e1 /Lib/test/test_os.py
parent6eb36b0cfa9ee66c37aea8370d9b06d64e352c2c (diff)
downloadcpython-cfcd3a9569f637523b48ee410c412b2c6f4d8155.zip
cpython-cfcd3a9569f637523b48ee410c412b2c6f4d8155.tar.gz
cpython-cfcd3a9569f637523b48ee410c412b2c6f4d8155.tar.bz2
Loosen the test for equal time stamps.
Diffstat (limited to 'Lib/test/test_os.py')
-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