[Python-checkins] r52338 - python/trunk/Lib/test/test_os.py

martin.v.loewis python-checkins at python.org
Sun Oct 15 11:35:51 CEST 2006


Author: martin.v.loewis
Date: Sun Oct 15 11:35:51 2006
New Revision: 52338

Modified:
   python/trunk/Lib/test/test_os.py
Log:
Loosen the test for equal time stamps.

Modified: python/trunk/Lib/test/test_os.py
==============================================================================
--- python/trunk/Lib/test/test_os.py	(original)
+++ python/trunk/Lib/test/test_os.py	Sun Oct 15 11:35:51 2006
@@ -228,7 +228,7 @@
         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


More information about the Python-checkins mailing list