]> granicus.if.org Git - python/commitdiff
Ignore more deprecation warnings.
authorTim Peters <tim.peters@gmail.com>
Thu, 11 Apr 2002 20:04:12 +0000 (20:04 +0000)
committerTim Peters <tim.peters@gmail.com>
Thu, 11 Apr 2002 20:04:12 +0000 (20:04 +0000)
Lib/test/test___all__.py

index 4a4103632fb66ed65df9bd5a77c45d0a3f84fce7..299054f838763945ef6aabaf3bbd14b9ca660041 100644 (file)
@@ -1,5 +1,10 @@
 from test_support import verify, verbose
 import sys
+import warnings
+
+warnings.filterwarnings("ignore", ".* 'pre' .*", DeprecationWarning)
+warnings.filterwarnings("ignore", ".* regsub .*", DeprecationWarning)
+warnings.filterwarnings("ignore", ".* statcache .*", DeprecationWarning)
 
 def check_all(modname):
     names = {}
@@ -110,7 +115,7 @@ check_all("popen2")
 check_all("poplib")
 check_all("posixpath")
 check_all("pprint")
-check_all("pre")
+check_all("pre")  # deprecated
 check_all("profile")
 check_all("pstats")
 check_all("pty")
@@ -120,9 +125,6 @@ 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")