[Python-checkins] cpython (3.4): Issue #25322: Fix test for nested contextlib.suppress
martin.panter
python-checkins at python.org
Sat Oct 10 07:10:37 EDT 2015
https://hg.python.org/cpython/rev/452f76cbebdd
changeset: 98646:452f76cbebdd
branch: 3.4
parent: 98642:4dfead9635e5
user: Martin Panter <vadmium+py at gmail.com>
date: Sat Oct 10 11:04:44 2015 +0000
summary:
Issue #25322: Fix test for nested contextlib.suppress
files:
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
--- a/Lib/test/test_contextlib.py
+++ b/Lib/test/test_contextlib.py
@@ -828,9 +828,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()
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list