Charles-François Natali added the comment: > Bernt Røskar Brenna added the comment: > > @neologix: How can it not have anything to do with threads? > > - It always works with max_workers == 1 > - When max_workers == 2, shutil.rmtree sometimes fails
It has nothing to do with threads. You could reproduce it by opening your files, spawning two child processes, wait until the first one returns, and then try to remove the files used by the first subprocess. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue19575> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com