mirror of
https://github.com/python/cpython.git
synced 2025-11-25 12:44:13 +00:00
Issue #25322: Fix test for nested contextlib.suppress
This commit is contained in:
parent
d21e0b52f1
commit
7c6420a552
1 changed files with 3 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue