Pierre Quentel added the comment: Thanks for telling me. I must have run the test hundreds of times now, on a Windows 7 PC, and this bug never occured.
Just for my information, why do you add temp.flush() in the "with" block ? I thought the context manager took care of this. 2017-07-28 18:19 GMT+02:00 STINNER Victor <rep...@bugs.python.org>: > > STINNER Victor added the comment: > > FYI there was a race condition, impacting Windows. I just fixed it: > bpo-31066, commit 28ce07ae9e34c70eea6b52515c7e00001cefd41e. > > ---------- > nosy: +haypo > > _______________________________________ > Python tracker <rep...@bugs.python.org> > <http://bugs.python.org/issue29654> > _______________________________________ > ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue29654> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com