Commit 7c6420a5 authored by Martin Panter's avatar Martin Panter

Issue #25322: Fix test for nested contextlib.suppress

parent d21e0b52
...@@ -828,9 +828,11 @@ class TestSuppress(unittest.TestCase): ...@@ -828,9 +828,11 @@ class TestSuppress(unittest.TestCase):
with ignore_exceptions: with ignore_exceptions:
len(5) len(5)
with ignore_exceptions: with ignore_exceptions:
1/0
with ignore_exceptions: # Check nested usage with ignore_exceptions: # Check nested usage
len(5) len(5)
outer_continued = True
1/0
self.assertTrue(outer_continued)
if __name__ == "__main__": if __name__ == "__main__":
unittest.main() unittest.main()
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment