[issue14632] Race condition in WatchedFileHandler leads to unhandled exception

Vinay Sajip report at bugs.python.org
Thu May 3 03:19:24 CEST 2012


Vinay Sajip <vinay_sajip at yahoo.co.uk> added the comment:

The changeset you mentioned doesn't have a cleanup function in test_race (an older version used to) - so I'm not sure where that error is coming from.

It's going to be hard for me to reproduce this - I was finding it pretty hard to throw up the original race condition which led to the test being added. If you are getting the error repeatably, it would be really handy if you could tweak the test to generate some more diagnostic information - e.g. if the file already exists when the open fails (=> it's held open by something else).

Are you running indexing or anti-virus software on the machine where you get the failures? That can hold a file open when you're not expecting it.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14632>
_______________________________________


More information about the Python-bugs-list mailing list