Also ignore package deprecations.

This commit is contained in:
Brett Cannon 2008-05-10 02:57:03 +00:00
parent edb628f241
commit af87804831
1 changed files with 2 additions and 1 deletions

View File

@ -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: