[issue20529] Unittest displays ResourceWarning warnings when running tests, it probably should not

R. David Murray report at bugs.python.org
Thu Feb 6 15:20:32 CET 2014


R. David Murray added the comment:

This is intentional behavior.  In the general case, resource warnings *are* bugs, since not all Python implementations do automatic cleanup.  This behavior should be controllable (I'm not even sure they *can* be turned on if python is not compiled in debug mode).

I don't see resource warnings mentioned in the TextTestRunner docs that mention the other warning controls.  It also seems like perhaps there should be a way to control warnings from the unittest command line.  So I'd say there are some improvements that can be made here, but the basic behavior is working as intended.

----------
nosy: +r.david.murray

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20529>
_______________________________________


More information about the Python-bugs-list mailing list