mirror of https://github.com/python/cpython
Also ignore package deprecations.
This commit is contained in:
parent
edb628f241
commit
af87804831
|
@ -10,7 +10,8 @@ class AllTest(unittest.TestCase):
|
|||
def check_all(self, modname):
|
||||
names = {}
|
||||
with catch_warning():
|
||||
warnings.filterwarnings("ignore", ".* module", DeprecationWarning)
|
||||
warnings.filterwarnings("ignore", ".* (module|package)",
|
||||
DeprecationWarning)
|
||||
try:
|
||||
exec "import %s" % modname in names
|
||||
except ImportError:
|
||||
|
|
Loading…
Reference in New Issue