[New-bugs-announce] [issue7301] Add environment variable $PYTHONWARNINGS

Barry A. Warsaw report at bugs.python.org
Tue Nov 10 16:05:31 CET 2009


New submission from Barry A. Warsaw <barry at python.org>:

It would be very useful to have an environment variable $PYTHONWARNINGS,
tied to the -W option for silencing various warnings (most importantly,
DeprecationWarnings).

Use case: a test suite running many subprocesses, testing that those
subproc output is clean.  DeprecationWarnings cannot easily be
suppressed by passing -W flags all around or using liberally sprinkled
filterwarnings().  Setting $PYTHONWARNINGS once and for all to silence
all processes would be very useful.

----------
components: Library (Lib)
messages: 95117
nosy: barry
severity: normal
status: open
title: Add environment variable $PYTHONWARNINGS
type: feature request
versions: Python 2.7, Python 3.2

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


More information about the New-bugs-announce mailing list