Commit af878048 authored by Brett Cannon's avatar Brett Cannon

Also ignore package deprecations.

parent edb628f2
...@@ -10,7 +10,8 @@ class AllTest(unittest.TestCase): ...@@ -10,7 +10,8 @@ class AllTest(unittest.TestCase):
def check_all(self, modname): def check_all(self, modname):
names = {} names = {}
with catch_warning(): with catch_warning():
warnings.filterwarnings("ignore", ".* module", DeprecationWarning) warnings.filterwarnings("ignore", ".* (module|package)",
DeprecationWarning)
try: try:
exec "import %s" % modname in names exec "import %s" % modname in names
except ImportError: except ImportError:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment