Message332138
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) |
|
Date |
User |
Action |
Args |
2018-12-19 13:38:26 | ncoghlan | set | recipients:
+ ncoghlan, vstinner, rbcollins, ezio.melotti, Arfrever, michael.foord, chris.jerdonek, Ben.Darnell, serhiy.storchaka |
2018-12-19 13:38:26 | ncoghlan | set | messageid: <1545226706.38.0.788709270274.issue15626@psf.upfronthosting.co.za> |
2018-12-19 13:38:26 | ncoghlan | link | issue15626 messages |
2018-12-19 13:38:26 | ncoghlan | create | |
|