diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2010-10-29 11:53:34 +0000 |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2010-10-29 11:53:34 +0000 |
commit | a4c197dfa8dc3944aaf1b42e1ece03077cfa86cc (patch) | |
tree | c65e7dc83524b96e9440a3e0f9b6f8448683e07a /Lib/test/test___all__.py | |
parent | 5d07e3a5e95dc2e53c2cee50f59a22aeabfa8826 (diff) | |
download | cpython-a4c197dfa8dc3944aaf1b42e1ece03077cfa86cc.tar.gz |
test___all__ ignores ResourceWarning as well
Diffstat (limited to 'Lib/test/test___all__.py')
-rw-r--r-- | Lib/test/test___all__.py | 6 |
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: |