Issue #25322: Fix test for nested contextlib.suppress
This commit is contained in:
parent
d21e0b52f1
commit
7c6420a552
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue