[issue15626] unittest.main negates -bb option and programmatic warning configuration

2020-10-30 Thread Nick Coghlan
Nick Coghlan added the comment: Issue #42186 now covers the request to have a way to tell unittest to leave the warnings filter alone even if it's set programmatically rather than by modifying ``sys.warnoptions``. (Changing version to 3.7 to indicate when the interaction with `-bb` was fixed

[issue15626] unittest.main negates -bb option and programmatic warning configuration

2020-10-30 Thread Nick Coghlan
Change by Nick Coghlan : -- superseder: -> unittest overrides more serious warnings filter added before unittest.main() ___ Python tracker ___ ___

[issue15626] unittest.main negates -bb option and programmatic warning configuration

2018-12-19 Thread Nick Coghlan
Nick Coghlan 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

[issue15626] unittest.main negates -bb option and programmatic warning configuration

2018-12-12 Thread Mark Lawrence
Change by Mark Lawrence : -- nosy: -BreamoreBoy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue15626] unittest.main negates -bb option and programmatic warning configuration

2018-12-12 Thread STINNER Victor
STINNER Victor added the comment: > Something was changed in 3.7 Yeah, Python 3.7 handles warning options differently: there is the PEP 565 and this commit: commit 747f48e2e92390c44c72f52a1239959601cde157 Author: Victor Stinner Date: Tue Dec 12 22:59:48 2017 +0100 bpo-32230: Set sys.

[issue15626] unittest.main negates -bb option and programmatic warning configuration

2018-12-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Something was changed in 3.7, but I do not see differences in unittest that can cause this. $ python3.6 -bb testbb.py testbb.py:7: BytesWarning: str() on a bytes instance str(b"") . -- R

[issue15626] unittest.main negates -bb option and programmatic warning configuration

2014-07-10 Thread Mark Lawrence
Mark Lawrence added the comment: The behaviour is still the same for 3.4.1 and 3.5.0a0 on Windows 7. -- components: +Tests nosy: +BreamoreBoy versions: +Python 3.4, Python 3.5 -Python 3.2, Python 3.3 ___ Python tracker

[issue15626] unittest.main negates -bb option and programmatic warning configuration

2012-09-04 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue15626] unittest.main negates -bb option and programmatic warning configuration

2012-08-12 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +michael.foord versions: +Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue15626] unittest.main negates -bb option and programmatic warning configuration

2012-08-11 Thread R. David Murray
Changes by R. David Murray : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue15626] unittest.main negates -bb option and programmatic warning configuration

2012-08-11 Thread Chris Jerdonek
Changes by Chris Jerdonek : -- nosy: +cjerdonek ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue15626] unittest.main negates -bb option and programmatic warning configuration

2012-08-11 Thread Ben Darnell
New submission from Ben Darnell: In python 3.2, unittest.main by default modifies the warning configuration if no -W options were given on the command line. This undoes the effect of -bb, turning BytesWarning back into a warning instead of an error. If both -bb and -Werror::BytesWarning are g