]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Issue #15745: Rewrite os.utime() tests in test_os
authorVictor Stinner <victor.stinner@gmail.com>
Fri, 12 Jun 2015 15:26:23 +0000 (17:26 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Fri, 12 Jun 2015 15:26:23 +0000 (17:26 +0200)
commit47aacc8f695c4253a8fd085adaff1e552d57da48
treef35cdae117ebdbc14f3f318ae7a38437550fb369
parentadf03c3544084359d89e7a0bc2a5aa0561f1a0f2
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