[issue20355] -W command line options should have higher priority than PYTHONWARNINGS environmental variable

Arfrever Frehtes Taifersar Arahesis report at bugs.python.org
Thu Jan 23 09:59:42 CET 2014


Arfrever Frehtes Taifersar Arahesis added the comment:

The attached patch moves calls to PySys_AddWarnOption* for -W options to after parsing PYTHONWARNINGS.

I think that this bug fix could be applied in Python 3.4. The patch does not introduce any failures in full test suite.

----------
keywords: +patch
nosy: +larry
Added file: http://bugs.python.org/file33645/python-warnings.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20355>
_______________________________________


More information about the Python-bugs-list mailing list