From 7c6420a552eb540e03f0d6c75f5a0557803c3850 Mon Sep 17 00:00:00 2001 From: Martin Panter Date: Sat, 10 Oct 2015 11:04:44 +0000 Subject: [PATCH] Issue #25322: Fix test for nested contextlib.suppress --- Lib/test/test_contextlib.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Lib/test/test_contextlib.py b/Lib/test/test_contextlib.py index 8f849ae5604..2669651fba2 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()