]> granicus.if.org Git - python/commitdiff
test___all__ ignores ResourceWarning as well
authorAntoine Pitrou <solipsis@pitrou.net>
Fri, 29 Oct 2010 11:53:34 +0000 (11:53 +0000)
committerAntoine Pitrou <solipsis@pitrou.net>
Fri, 29 Oct 2010 11:53:34 +0000 (11:53 +0000)
Lib/test/test___all__.py

index 695669ae22b59666f984a720de220fccdd049dec..608ec01f14017b60c79db608066bb2771313c3e5 100644 (file)
@@ -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: