SilentGhost added the comment: Looking at the code it seems NamedTemporaryFile is closed on destruction of the object, so there is no need for ResourceWarning, because the file descriptor is not leaking.
You also don't need to involve unittest here. Just running python with -Wall would generate a warning if there is a need for one. ---------- nosy: +SilentGhost _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue28867> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com