From: Martin Panter Date: Sat, 10 Oct 2015 11:04:44 +0000 (+0000) Subject: Issue #25322: Fix test for nested contextlib.suppress X-Git-Tag: v3.5.1rc1~185^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7c6420a552eb540e03f0d6c75f5a0557803c3850;p=python Issue #25322: Fix test for nested contextlib.suppress --- diff --git a/Lib/test/test_contextlib.py b/Lib/test/test_contextlib.py index 8f849ae560..2669651fba 100644 --- a/Lib/test/test_contextlib.py +++ b/Lib/test/test_contextlib.py @@ -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()