Kaydet (Commit) a0d2f4de authored tarafından Antoine Pitrou's avatar Antoine Pitrou

test___all__ ignores ResourceWarning as well

üst 5efe9d08
...@@ -15,8 +15,10 @@ class AllTest(unittest.TestCase): ...@@ -15,8 +15,10 @@ class AllTest(unittest.TestCase):
def check_all(self, modname): def check_all(self, modname):
names = {} names = {}
with support.check_warnings((".* (module|package)", with support.check_warnings(
DeprecationWarning), quiet=True): (".* (module|package)", DeprecationWarning),
("", ResourceWarning),
quiet=True):
try: try:
exec("import %s" % modname, names) exec("import %s" % modname, names)
except: except:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment