mirror of
https://github.com/python/cpython.git
synced 2025-07-28 21:55:21 +00:00
#7092: silence py3k warnings for deprecated modules
This commit is contained in:
parent
75d3fb1ebb
commit
a2d4653740
14 changed files with 47 additions and 30 deletions
|
@ -9,7 +9,10 @@ import warnings
|
|||
warnings.filterwarnings('ignore', r".*commands.getstatus.. is deprecated",
|
||||
DeprecationWarning)
|
||||
|
||||
from test.test_support import run_unittest, reap_children
|
||||
from test.test_support import run_unittest, reap_children, import_module
|
||||
|
||||
# Silence Py3k warning
|
||||
import_module('commands', deprecated=True)
|
||||
from commands import *
|
||||
|
||||
# The module says:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue