[issue22427] TemporaryDirectory attempts to clean up twice

Serhiy Storchaka report at bugs.python.org
Fri Sep 19 10:51:28 CEST 2014


Serhiy Storchaka added the comment:

Fixed a bug in the test and partially addressed Victor's and Yury's comments.

Antoine, could your pleas answer following question?

Is it safe to remove the "self._finalizer is not None" check in cleanup()? I.e. is it possible that self._finalizer becomes None at garbage collection?

----------
Added file: http://bugs.python.org/file36658/tempfile_exit_on_shutdown3.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22427>
_______________________________________


More information about the Python-bugs-list mailing list