From af8780483129e10d30b660cea1e3b893d913e963 Mon Sep 17 00:00:00 2001 From: Brett Cannon Date: Sat, 10 May 2008 02:57:03 +0000 Subject: [PATCH] Also ignore package deprecations. --- Lib/test/test___all__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Lib/test/test___all__.py b/Lib/test/test___all__.py index 8f12d7cf96..1076c6191b 100644 --- a/Lib/test/test___all__.py +++ b/Lib/test/test___all__.py @@ -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: -- 2.50.1