A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2002-April/023312.html below:

[Python-Dev] DeprecationWarnings in the regression tests

[Python-Dev] DeprecationWarnings in the regression tests [Python-Dev] DeprecationWarnings in the regression testsGuido 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/)




RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4