diff options
Diffstat (limited to 'Lib/test/test___all__.py')
-rw-r--r-- | Lib/test/test___all__.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test___all__.py b/Lib/test/test___all__.py index f6da4fe2ba..dbc55cdf3f 100644 --- a/Lib/test/test___all__.py +++ b/Lib/test/test___all__.py @@ -9,7 +9,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, names) except ImportError: |