]> granicus.if.org Git - python/commit
Issue #15745: Rewrite os.utime() tests in test_os
authorVictor Stinner <victor.stinner@gmail.com>
Fri, 12 Jun 2015 19:58:00 +0000 (21:58 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Fri, 12 Jun 2015 19:58:00 +0000 (21:58 +0200)
commite12e7aa3fdd98e924dbc2179c54065fff44efd55
treed167d4581978fee164a2757de889ab3f2ba4a079
parentf5d4523844cad49074a562bad4a7095ed955640d
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