mirror of
https://github.com/python/cpython.git
synced 2025-11-08 21:52:45 +00:00
Ignore more deprecation warnings.
This commit is contained in:
parent
3c14efe696
commit
b05cd496df
1 changed files with 6 additions and 4 deletions
|
|
@ -1,5 +1,10 @@
|
||||||
from test_support import verify, verbose
|
from test_support import verify, verbose
|
||||||
import sys
|
import sys
|
||||||
|
import warnings
|
||||||
|
|
||||||
|
warnings.filterwarnings("ignore", ".* 'pre' .*", DeprecationWarning)
|
||||||
|
warnings.filterwarnings("ignore", ".* regsub .*", DeprecationWarning)
|
||||||
|
warnings.filterwarnings("ignore", ".* statcache .*", DeprecationWarning)
|
||||||
|
|
||||||
def check_all(modname):
|
def check_all(modname):
|
||||||
names = {}
|
names = {}
|
||||||
|
|
@ -110,7 +115,7 @@ check_all("popen2")
|
||||||
check_all("poplib")
|
check_all("poplib")
|
||||||
check_all("posixpath")
|
check_all("posixpath")
|
||||||
check_all("pprint")
|
check_all("pprint")
|
||||||
check_all("pre")
|
check_all("pre") # deprecated
|
||||||
check_all("profile")
|
check_all("profile")
|
||||||
check_all("pstats")
|
check_all("pstats")
|
||||||
check_all("pty")
|
check_all("pty")
|
||||||
|
|
@ -120,9 +125,6 @@ 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")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue