Author gagern
Recipients brett.cannon, gagern
Date 2009-02-04.09:33:19
SpamBayes Score 4.91336e-06
Marked as misclassified No
Message-id <1233740005.2.0.2234891819.issue5128@psf.upfronthosting.co.za>
In-reply-to
Content
Not being a regular Python programmer myself, I've never even heard of a
context manager before, but this latest patch should fit the bill.

As for tests, I believe that a few two-second sleeps (as FAT has only
two second resolution iirc) should avoid the kind of problem you
describe. This latest patch includes unit tests, where the test_backdate
fails for current implementation. The others are there to express even
more basic assumptions, and can be dropped if you worry about those
seconds spent running obvious tests. The tests are based on
test_dircache, from which I copied and adapted the infrastructure for
dealing with a temporary directory.
History
Date User Action Args
2009-02-04 09:33:25gagernsetrecipients: + gagern, brett.cannon
2009-02-04 09:33:25gagernsetmessageid: <1233740005.2.0.2234891819.issue5128@psf.upfronthosting.co.za>
2009-02-04 09:33:23gagernlinkissue5128 messages
2009-02-04 09:33:22gagerncreate