[issue10207] test_file2k crashes under Windows
David Bolen
report at bugs.python.org
Wed Oct 27 19:14:48 CEST 2010
David Bolen <db3l.net at gmail.com> added the comment:
Yes, the patch from issue9295 (py27_fix_threaded_file_close.patch) seems to do the trick. I managed to get pretty good (90%+ success) at tickling the issue - interestingly by interactively clicking away from the test console window just after starting the test - and have run the test dozens of times with the patch with no problem.
Oddly, I couldn't seem to create the issue with other tests by adding buffering to them, which I had expected if it was a general threading issue with file buffering - only the print test was crashing. Maybe since print is internally less atomic (with separate I/O due to softspace) it's more susceptible to thread switching.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10207>
_______________________________________
More information about the Python-bugs-list
mailing list