Issue #25322: Fix test for nested contextlib.suppress

This commit is contained in:
Martin Panter 2015-10-10 11:04:44 +00:00
parent d21e0b52f1
commit 7c6420a552
1 changed files with 3 additions and 1 deletions

View File

@ -828,9 +828,11 @@ class TestSuppress(unittest.TestCase):
with ignore_exceptions:
len(5)
with ignore_exceptions:
1/0
with ignore_exceptions: # Check nested usage
len(5)
outer_continued = True
1/0
self.assertTrue(outer_continued)
if __name__ == "__main__":
unittest.main()