(original) (raw)
changeset: 98647:836ac579e179 branch: 3.5 parent: 98643:be34d96e2184 parent: 98646:452f76cbebdd user: Martin Panter vadmium+py@gmail.com date: Sat Oct 10 11:05:47 2015 +0000 files: Lib/test/test_contextlib.py description: Issue #25322: Merge contextlib.suppress test fix from 3.4 into 3.5 diff -r be34d96e2184 -r 836ac579e179 Lib/test/test_contextlib.py --- a/Lib/test/test_contextlib.py Sat Oct 10 10:44:25 2015 +0000 +++ b/Lib/test/test_contextlib.py Sat Oct 10 11:05:47 2015 +0000 @@ -880,9 +880,11 @@ 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() /vadmium+py@gmail.com