From: Antoine Pitrou Date: Fri, 29 Oct 2010 11:53:34 +0000 (+0000) Subject: test___all__ ignores ResourceWarning as well X-Git-Tag: v3.2a4~298 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a0d2f4def9c0584e615c7531388614127f517075;p=thirdparty%2FPython%2Fcpython.git test___all__ ignores ResourceWarning as well --- diff --git a/Lib/test/test___all__.py b/Lib/test/test___all__.py index 695669ae22b5..608ec01f1401 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: