[Python-Dev] DeprecationWarnings in the regression tests

Guido van Rossum guido@python.org
Mon, 15 Apr 2002 20:11:54 -0400

> I was lazy, though, and didn't add a call to resetwarnings() in each
> module where I added a warning filter; indeed, we never call
> resetwarnings() anywhere now.

You don't need to, as long as the filterwarnings() arguments specify
the current file and the specific error message you're suppressing.
Calling resetwarnings() should be avoided, because it may enable
warnings that were disabled by default or globally on purpose.

--Guido van Rossum (home page: http://www.python.org/~guido/)