STINNER Victor added the comment: > The problem is that os.unlink(TESTFN) ignores all OSError: os.unlink(TESTFN) > fails because there is still an open file object somewhere.
I created the issue #30265: test.support.unlink() should fail or emit a warning on WindowsError: [Error 32] The process cannot access the file .... ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue30264> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com