mirror of https://github.com/python/cpython
Issue #25322: Merge contextlib.suppress test fix from 3.4 into 3.5
This commit is contained in:
commit
05da525e55
|
@ -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)
|
||||
outer_continued = True
|
||||
1/0
|
||||
self.assertTrue(outer_continued)
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
|
|
Loading…
Reference in New Issue