[issue7301] Add environment variable $PYTHONWARNINGS

Brian Curtin report at bugs.python.org
Fri Nov 13 22:15:47 CET 2009


Brian Curtin <curtin at acm.org> added the comment:

I attached a patch against trunk r76237 which seems to cover this, sans
official tests. I looked around and didn't find a good place for
specifically testing environment variables. I could add test code in
test_warnings if that's the best place.

The patch allows multiple warnings to be passed to the environment
variable as a comma separated string, and works in conjunction with -W.

Let me know what you think.

----------
keywords: +patch
nosy: +brian.curtin
Added file: http://bugs.python.org/file15322/issue7301.patch

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


More information about the Python-bugs-list mailing list