Antoine Pitrou added the comment:

Ouch. I've just been bitten by the fact that unittest enables all warnings by 
default in 3.4, and this change would definitely make things worse. I would 
like to see a simple, documented way of disabling this new behaviour. I'm 
proposing a `catch_warnings` flag on both TestProgram and TestResult 
(defaulting to True if you like).

(it would be even nicer if this were more flexible, e.g. I want unittest to 
catch ResourceWarning but not NumbaWarning, but that's icing on the cake)

By the way, perhaps the tests should also exercise the interaction with 
assertWarns() calls.

----------
nosy: +pitrou

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue18381>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to