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 tim.peters
Recipients brian.curtin, jkloth, loewis, pitrou, python-dev, steve.dower, tim.golden, tim.peters
Date 2013-11-23.07:06:56
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1385190416.57.0.643427358432.issue19715@psf.upfronthosting.co.za>
In-reply-to
Content
I have a different theory about this.  As explained all over the place, on FAT file creation times are good to 10 milliseconds but modification times only good to 2 seconds.  But I can't find one credible word about what the various precisions are for NTFS.  For example,

http://msdn.microsoft.com/en-us/library/windows/desktop/ms724290(v=vs.85).aspx

only gives details about FAT.

Anyway, suppose internal system time is 4.5123 seconds.  On FAT we create a file, and it's recorded as 4.51 seconds.  We immediately modify it, and that's recorded as 4 seconds.  Oops!  The file was modified before it was created :-)

If NTFS similarly records creation times with greater resolution than modification times, then obviously something similar could happen.

Could that explain the test failures?  Possibly.  The file doesn't exist at first, so it's plausible that the initial "modification time" retrieved is really the file creation time.  And that the later modification time really is a modification time.
History
Date User Action Args
2013-11-23 07:06:56tim.peterssetrecipients: + tim.peters, loewis, pitrou, tim.golden, jkloth, brian.curtin, python-dev, steve.dower
2013-11-23 07:06:56tim.peterssetmessageid: <1385190416.57.0.643427358432.issue19715@psf.upfronthosting.co.za>
2013-11-23 07:06:56tim.peterslinkissue19715 messages
2013-11-23 07:06:56tim.peterscreate