diff options
author | Martin Panter <vadmium+py@gmail.com> | 2015-10-10 11:05:47 (GMT) |
---|---|---|
committer | Martin Panter <vadmium+py@gmail.com> | 2015-10-10 11:05:47 (GMT) |
commit | 05da525e55a5db2e2e3c81e413e69c4a6f0a1db9 (patch) | |
tree | 8b33dc5e668797860e541875869ef18cb823ce87 /Lib | |
parent | 84835ab1cb2a8ccfeeb4474d39130d972a3c563d (diff) | |
parent | 7c6420a552eb540e03f0d6c75f5a0557803c3850 (diff) | |
download | cpython-05da525e55a5db2e2e3c81e413e69c4a6f0a1db9.zip cpython-05da525e55a5db2e2e3c81e413e69c4a6f0a1db9.tar.gz cpython-05da525e55a5db2e2e3c81e413e69c4a6f0a1db9.tar.bz2 |
Issue #25322: Merge contextlib.suppress test fix from 3.4 into 3.5
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_contextlib.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/test/test_contextlib.py b/Lib/test/test_contextlib.py index 78741f5..30a6377 100644 --- a/Lib/test/test_contextlib.py +++ b/Lib/test/test_contextlib.py @@ -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() |