[issue9295] test_close_open_print_buffered(test_file) sometimes crashes

Antoine Pitrou report at bugs.python.org
Sun Jul 18 17:45:11 CEST 2010


Antoine Pitrou <pitrou at free.fr> added the comment:

The proposed resolution is wrong. As the comment says, there is a specific reason why f->fp is NULLed at this point.

It appears that maybe MSVCRT is not entirely thread-safe with respect to buffered file I/O. Perhaps the test can simply be disabled under Windows. Is test_close_open_print_buffered the only test that fails?

----------
nosy: +pitrou

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


More information about the Python-bugs-list mailing list