From a0d2f4def9c0584e615c7531388614127f517075 Mon Sep 17 00:00:00 2001 From: Antoine Pitrou Date: Fri, 29 Oct 2010 11:53:34 +0000 Subject: [PATCH] test___all__ ignores ResourceWarning as well --- Lib/test/test___all__.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Lib/test/test___all__.py b/Lib/test/test___all__.py index 695669ae22..608ec01f14 100644 --- a/Lib/test/test___all__.py +++ b/Lib/test/test___all__.py @@ -15,8 +15,10 @@ class AllTest(unittest.TestCase): def check_all(self, modname): names = {} - with support.check_warnings((".* (module|package)", - DeprecationWarning), quiet=True): + with support.check_warnings( + (".* (module|package)", DeprecationWarning), + ("", ResourceWarning), + quiet=True): try: exec("import %s" % modname, names) except: -- 2.40.0