Message203910
I don't have any extra insight into this. The documented resolution for mtime on NTFS is 100ns (2s on FAT32), so without delaying by at least that long you're not going to see an official change. The noise is probably from floating-point conversions (in _PyTime_ObjectToDenominator, at a guess).
Maybe you want to test to be a bit more generous with the bounds:
1. touch
2. get original_mtime
3. utime(10s ago)
4. verify p.stat().st_mtime < original_mtime
5. store old_mtime
6. touch
7. verify p.stat().st_mtime > old_mtime
OR
7. verify original_mtime - 0.001 < p.stat().st_mtime < original_mtime + 0.001 |
|
Date |
User |
Action |
Args |
2013-11-22 23:03:00 | steve.dower | set | recipients:
+ steve.dower, tim.peters, loewis, pitrou, tim.golden, jkloth, brian.curtin, python-dev |
2013-11-22 23:03:00 | steve.dower | set | messageid: <1385161380.04.0.173384544069.issue19715@psf.upfronthosting.co.za> |
2013-11-22 23:03:00 | steve.dower | link | issue19715 messages |
2013-11-22 23:02:59 | steve.dower | create | |
|