This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients Arfrever, BreamoreBoy, Claudiu.Popa, emaste, harrison.grundy, jcea, koobs, larry, pitrou, r.david.murray, trent, vstinner
Date 2015-06-12.00:39:37
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1434069582.03.0.456015193913.issue15745@psf.upfronthosting.co.za>
In-reply-to
Content
test_utime.patch: a much larger patch which rewrites all unit tests on os.utime().

Changes:

* Use a fixed timestamp instead of copying timestamps from an existing file. If the timestamp of the original file can have a resolution of 1 nanosecond, os.utime() rounds to a resolution of 1 us on some platforms (when the C function uses a structure with a resolutionf of 1 us).
* Use a fixed timestamp with a resolution of 1 us instead of a resolution of 1 ms.
* Remove test_1565150(): it's now redundant with test_utime() and many other test_utime_*() tests
* Use self.fname instead of __file__ to check if the filesystem supports subsecond resolution: these two files may be in two different filesystems
* test_large_time() now checks the filesystem when it is executed, not when the class is defined. This change is to ensure that we are testing the right filesystem.
* replace support.TESTFN with self.dirname for readability
* move all os.utime() tests in a new dedicated class
* _test_utime_current() now get the system clock using time.time() and tolerate a delta of 10 ms instead of 10 seconds: we may increase the delta because of slow buildbots, but I hope that we can find a value smaller than 10 seconds!
* Avoid tricky getattr(), it's no more needed
* Merge duplicated test_utime_*() and test_utime_subsecond_*() functions
* Test also st_atime on when testing os.utime() on a directory
* etc.
History
Date User Action Args
2015-06-12 00:39:42vstinnersetrecipients: + vstinner, jcea, pitrou, larry, trent, Arfrever, r.david.murray, Claudiu.Popa, BreamoreBoy, koobs, emaste, harrison.grundy
2015-06-12 00:39:42vstinnersetmessageid: <1434069582.03.0.456015193913.issue15745@psf.upfronthosting.co.za>
2015-06-12 00:39:41vstinnerlinkissue15745 messages
2015-06-12 00:39:41vstinnercreate