Martin von Gagern <martin.vgag...@gmx.net> added the comment:

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.

Added file: http://bugs.python.org/file12937/compileall-timestamp3.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue5128>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to