diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2006-10-15 09:35:51 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2006-10-15 09:35:51 (GMT) |
commit | cfcd3a9569f637523b48ee410c412b2c6f4d8155 (patch) | |
tree | 6d5edbfbe5b4463cfcdf03ad452038f4b9b114e1 /Lib/test/test_os.py | |
parent | 6eb36b0cfa9ee66c37aea8370d9b06d64e352c2c (diff) | |
download | cpython-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.py | 2 |
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 |