This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ncoghlan
Recipients Arfrever, Ben.Darnell, chris.jerdonek, ezio.melotti, michael.foord, ncoghlan, rbcollins, serhiy.storchaka, vstinner
Date 2018-12-19.13:38:26
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1545226706.38.0.788709270274.issue15626@psf.upfronthosting.co.za>
In-reply-to
Content
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)
History
Date User Action Args
2018-12-19 13:38:26ncoghlansetrecipients: + ncoghlan, vstinner, rbcollins, ezio.melotti, Arfrever, michael.foord, chris.jerdonek, Ben.Darnell, serhiy.storchaka
2018-12-19 13:38:26ncoghlansetmessageid: <1545226706.38.0.788709270274.issue15626@psf.upfronthosting.co.za>
2018-12-19 13:38:26ncoghlanlinkissue15626 messages
2018-12-19 13:38:26ncoghlancreate