Colas Le Guernic <colas.le.guer...@gmail.com> added the comment:
Actually, it has nothing to do with subprocess.run, replacing that line with sleep(random()) exhibits the same behavior. ---------- title: tempfile.TemporaryDirectory deleted after call to subprocess.run in threads -> tempfile.TemporaryDirectory deleted after sleep in threads Added file: https://bugs.python.org/file50036/mwe.py _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue44105> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com