diff --git a/Lib/test/test_contextlib.py b/Lib/test/test_contextlib.py index 78741f5..7d0a223 100644 --- a/Lib/test/test_contextlib.py +++ b/Lib/test/test_contextlib.py @@ -880,9 +880,11 @@ class TestSuppress(unittest.TestCase): with ignore_exceptions: len(5) with ignore_exceptions: - 1/0 with ignore_exceptions: # Check nested usage len(5) + ignored = False + 1/0 + self.assertFalse(ignored) if __name__ == "__main__": unittest.main()