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 <rep...@bugs.python.org> <http://bugs.python.org/issue22427> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com