summaryrefslogtreecommitdiff
path: root/Lib/test/test___all__.py
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2010-10-29 11:53:34 +0000
committerAntoine Pitrou <solipsis@pitrou.net>2010-10-29 11:53:34 +0000
commita4c197dfa8dc3944aaf1b42e1ece03077cfa86cc (patch)
treec65e7dc83524b96e9440a3e0f9b6f8448683e07a /Lib/test/test___all__.py
parent5d07e3a5e95dc2e53c2cee50f59a22aeabfa8826 (diff)
downloadcpython-a4c197dfa8dc3944aaf1b42e1ece03077cfa86cc.tar.gz
test___all__ ignores ResourceWarning as well
Diffstat (limited to 'Lib/test/test___all__.py')
-rw-r--r--Lib/test/test___all__.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/Lib/test/test___all__.py b/Lib/test/test___all__.py
index 695669ae22..608ec01f14 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: