Commit 61b85011 authored by Guido van Rossum's avatar Guido van Rossum

Suppressing all DeprecationWarning messages was a bit of a problem for

the -Qwarnall option, so I've changed this to only filter out the one
warning that's a problem in practice.
parent 81fc7783
...@@ -2,9 +2,6 @@ from test_support import verify, verbose ...@@ -2,9 +2,6 @@ from test_support import verify, verbose
import sys import sys
def check_all(modname): def check_all(modname):
import warnings
warnings.filterwarnings("ignore", "", DeprecationWarning, modname)
names = {} names = {}
try: try:
exec "import %s" % modname in names exec "import %s" % modname in names
...@@ -122,6 +119,9 @@ check_all("quopri") ...@@ -122,6 +119,9 @@ check_all("quopri")
check_all("random") check_all("random")
check_all("re") check_all("re")
check_all("reconvert") check_all("reconvert")
import warnings
warnings.filterwarnings("ignore", ".* regsub .*", DeprecationWarning, "regsub",
append=1)
check_all("regsub") check_all("regsub")
check_all("repr") check_all("repr")
check_all("rexec") check_all("rexec")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment