Nick Coghlan <ncogh...@gmail.com> added the comment:

Aye, the relevant change here would be the fact that -b and -bb now modify 
sys.warnoptions, rather than the warnings module being aware of those command 
line options specifically: https://docs.python.org/3/whatsnew/3.7.html#warnings

As a result, unittest.main will see a non-empty sys.warnoptions in 3.7+ when 
-bb is passed.

That means most of Ben's original request has been implemented, with the one 
remaining aspect being the request for an officially documented and supported 
way to tell unittest.main to leave the warnings filters alone (regardless of 
the value of sys.warnoptions)

----------

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

Reply via email to