summaryrefslogtreecommitdiffstats
path: root/Lib/test/test___all__.py
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2010-10-29 11:53:34 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2010-10-29 11:53:34 (GMT)
commita0d2f4def9c0584e615c7531388614127f517075 (patch)
treeb963ef672b90fa96609dba2f2cf4267fef2af043 /Lib/test/test___all__.py
parent5efe9d0865235d61f4c8c8d339a398a9adb50aca (diff)
downloadcpython-a0d2f4def9c0584e615c7531388614127f517075.zip
cpython-a0d2f4def9c0584e615c7531388614127f517075.tar.gz
cpython-a0d2f4def9c0584e615c7531388614127f517075.tar.bz2
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 695669a..608ec01 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: