mirror of
https://github.com/python/cpython.git
synced 2025-12-15 21:44:50 +00:00
test___all__ ignores ResourceWarning as well
This commit is contained in:
parent
5efe9d0865
commit
a0d2f4def9
1 changed files with 4 additions and 2 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue