[issue44105] tempfile.TemporaryDirectory deleted after call to subprocess.run in threads

2021-05-10 Thread Colas Le Guernic
New submission from Colas Le Guernic : Yet another weird bug when one creates sub-processes from threads. I found several issues mentioning ThreadPoolExecutor and subprocess.run but I believe this one is different. When creating a temporary directory with tempfile.TemporaryDirectory (with or

[issue44105] tempfile.TemporaryDirectory deleted after call to subprocess.run in threads

2021-05-10 Thread Colas Le Guernic
Change by Colas Le Guernic : -- components: +Library (Lib) ___ Python tracker <https://bugs.python.org/issue44105> ___ ___ Python-bugs-list mailing list Unsub

[issue44105] tempfile.TemporaryDirectory deleted after sleep in threads

2021-05-11 Thread Colas Le Guernic
Colas Le Guernic 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 dele

[issue44105] tempfile.TemporaryDirectory deleted after sleep in threads

2021-05-11 Thread Colas Le Guernic
Change by Colas Le Guernic : -- versions: +Python 3.6, Python 3.7 ___ Python tracker <https://bugs.python.org/issue44105> ___ ___ Python-bugs-list mailin

[issue44105] tempfile.TemporaryDirectory deleted after sleep in threads

2021-05-11 Thread Colas Le Guernic
Colas Le Guernic added the comment: I guess this will be a `won't fix` as python3.8 is now in security-fix only mode. I was misled by https://www.python.org/downloads/ that still indicates a bugfix maintenance status. -- ___ Python tr