summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2001-09-04 15:22:02 (GMT)
committerGuido van Rossum <guido@python.org>2001-09-04 15:22:02 (GMT)
commit61b850110f10494cc496e6ba2f01d05a89ddfd5a (patch)
tree844f0a50752b3046293305468a9f2708e88884e3 /Lib
parent81fc7783eda271d0d05cf97fca57244094ff103b (diff)
downloadcpython-61b850110f10494cc496e6ba2f01d05a89ddfd5a.zip
cpython-61b850110f10494cc496e6ba2f01d05a89ddfd5a.tar.gz
cpython-61b850110f10494cc496e6ba2f01d05a89ddfd5a.tar.bz2
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.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test___all__.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test___all__.py b/Lib/test/test___all__.py
index 3ed22f9..8a4734c 100644
--- a/Lib/test/test___all__.py
+++ b/Lib/test/test___all__.py
@@ -2,9 +2,6 @@ from test_support import verify, verbose
import sys
def check_all(modname):
- import warnings
- warnings.filterwarnings("ignore", "", DeprecationWarning, modname)
-
names = {}
try:
exec "import %s" % modname in names
@@ -122,6 +119,9 @@ check_all("quopri")
check_all("random")
check_all("re")
check_all("reconvert")
+import warnings
+warnings.filterwarnings("ignore", ".* regsub .*", DeprecationWarning, "regsub",
+ append=1)
check_all("regsub")
check_all("repr")
check_all("rexec")