[issue33154] subprocess.Popen ResourceWarning should have activation-deactivation flags

Martin Panter report at bugs.python.org
Sun Jul 22 04:30:40 EDT 2018


Martin Panter <vadmium+py at 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 <report at bugs.python.org>
<https://bugs.python.org/issue33154>
_______________________________________


More information about the Python-bugs-list mailing list