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 puppet
Recipients Claudiu.Popa, francismb, koobs, larry, pitrou, puppet
Date 2014-08-04.05:07:06
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1407128827.27.0.808954360826.issue19838@psf.upfronthosting.co.za>
In-reply-to
Content
@Larry

The issue is the following:

In the test after the first p.touch
(Pdb) old_mtime
1407128672.4133856
(Pdb) old_mtime_ns
1407128672413385711

After second p.touch
(Pdb) st.st_mtime_ns
1407128689000000000
(Pdb) st.st_mtime
1407128689.0

So the issue is that when utime is used it can't set the time with nanosecond, but just with second resolution.

@Francis - A quick fix that would work, but it is a bit dirty but it will work correctly is to just add two p.touch() before doing anything.

Not really the best solution but could work.
History
Date User Action Args
2014-08-04 05:07:07puppetsetrecipients: + puppet, pitrou, larry, Claudiu.Popa, francismb, koobs
2014-08-04 05:07:07puppetsetmessageid: <1407128827.27.0.808954360826.issue19838@psf.upfronthosting.co.za>
2014-08-04 05:07:07puppetlinkissue19838 messages
2014-08-04 05:07:06puppetcreate