]> granicus.if.org Git - python/commit
(Merge 3.4) Issue #15745: Rewrite os.utime() tests in test_os
authorVictor Stinner <victor.stinner@gmail.com>
Fri, 12 Jun 2015 20:01:54 +0000 (22:01 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Fri, 12 Jun 2015 20:01:54 +0000 (22:01 +0200)
commit138adb8d05e9dcd70cede5548e183241c6b1029e
treef5aa481b285ca1070cf1fccafbb6409c16c882a8
parentbd44ce8ead3b8088ea837446136dd6c15ba980a8
(Merge 3.4) Issue #15745: Rewrite os.utime() tests in test_os

* Don't use the timestamp of an existing file anymore, only use fixed
  timestamp
* Enhance the code checking the resolution of the filesystem timestamps.
* Check timestamps with a resolution of 1 microsecond instead of 1 millisecond
* When os.utime() uses the current system clock, tolerate a delta of 20 ms.
  Before some os.utime() tolerated a different of 10 seconds.
* Merge duplicated tests and simplify the code
Lib/test/test_os.py