New submission from Serhiy Storchaka:

The proposed patch solves the problem with TemporaryDirectory cleanup. If 
shutil.rmtree() failed because module globals are set to None, 
TemporaryDirectory now uses own rmtree implementation which does not depends 
from globals. The patch also fixes other minor problems related to __del__ and 
fixes do_create() in tests (it deleted subdirectories just after creation).
See also issue10188.

----------
components: Library (Lib)
files: tempfile_tempdir_cleanup.patch
keywords: patch
messages: 198321
nosy: georg.brandl, ncoghlan, serhiy.storchaka
priority: normal
severity: normal
stage: patch review
status: open
title: More robust TemporaryDirectory cleanup
type: behavior
versions: Python 3.3, Python 3.4
Added file: http://bugs.python.org/file31848/tempfile_tempdir_cleanup.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue19077>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to