Serhiy Storchaka added the comment: Here is a patch that just uses addCleanup() as Victor suggested.
> Why do you remove captured_stdout() here? It is no longer needed. ---------- Added file: http://bugs.python.org/file41022/test_distutils_restore_log_level_2.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue25607> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com