[New-bugs-announce] [issue19077] More robust TemporaryDirectory cleanup

Serhiy Storchaka report at bugs.python.org
Mon Sep 23 16:58:46 CEST 2013


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 <report at bugs.python.org>
<http://bugs.python.org/issue19077>
_______________________________________


More information about the New-bugs-announce mailing list