diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2006-10-09 20:44:25 +0000 |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2006-10-09 20:44:25 +0000 |
commit | f43893a878991a00da1f1501f70d8b70797f31c0 (patch) | |
tree | 962ab2870ae355b56697e53c6d8b3a2699070894 /Lib/test/test_os.py | |
parent | e5ec613c4b80a50ca324c26d9704e69a97ca900c (diff) | |
download | cpython-git-f43893a878991a00da1f1501f70d8b70797f31c0.tar.gz |
Bug #1565150: Fix subsecond processing for os.utime on Windows.
Diffstat (limited to 'Lib/test/test_os.py')
-rw-r--r-- | Lib/test/test_os.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py index 9497777218..984484c4c3 100644 --- a/Lib/test/test_os.py +++ b/Lib/test/test_os.py @@ -223,6 +223,14 @@ class StatAttributeTests(unittest.TestCase): except TypeError: pass + # Restrict test to Win32, since there is no guarantee other + # systems support centiseconds + if sys.platform == 'win32': + def test_1565150(self): + t1 = 1159195039.25 + os.utime(self.fname, (t1, t1)) + self.assertEquals(os.stat(self.fname).st_mtime, t1) + from test import mapping_tests class EnvironTests(mapping_tests.BasicTestMappingProtocol): |