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):
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:
......
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