[issue24699] TemporaryDirectory is cleaned up twice

2017-01-09 Thread Eryk Sun
Changes by Eryk Sun : -- resolution: -> out of date stage: -> resolved ___ Python tracker ___

[issue24699] TemporaryDirectory is cleaned up twice

2017-01-09 Thread Ilya Kulakov
Changes by Ilya Kulakov : -- status: open -> closed ___ Python tracker ___ ___

[issue24699] TemporaryDirectory is cleaned up twice

2015-07-24 Thread Robert Collins
Robert Collins added the comment: I think you may need to instrument TemporaryDirectory._cleanup to be sure, but it sounds like its being run twice. now, you're not using it like a context manager (at least as far as your code shows), so it must be happening from the weakref.

[issue24699] TemporaryDirectory is cleaned up twice

2015-07-23 Thread Ilya Kulakov
New submission from Ilya Kulakov: I'm seeing the issue using python 3.4.3 on Windows 8 In the __init__.py method of my package I define temporary directory at the module level like this: _TempDir = tempfile.TemporaryDirectory(prefix='...')) tempfile.tempdir = _TempDir.name I expect it to be