Martin Panter <vadmium...@gmail.com> added the comment: Can’t you use Python’s existing CLI <https://docs.python.org/3.6/using/cmdline.html#cmdoption-w> and environment variable <https://docs.python.org/3.6/using/cmdline.html#envvar-PYTHONWARNINGS> to control the ResourceWarning messages?
Warnings where enabled by default when using the “unittest” module in Issue 10535. There is probably a way to disable them, at least by using the “warnings” module directly. But I think ResourceWarning should stay enabled by default when running tests. As you said, the warnings help testing for bugs. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue33154> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com