summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_contextlib.py
diff options
context:
space:
mode:
authorMartin Panter <vadmium+py@gmail.com>2015-10-10 11:06:05 (GMT)
committerMartin Panter <vadmium+py@gmail.com>2015-10-10 11:06:05 (GMT)
commit4df3b1a19544c52f93dacfd577559d4bd3a0c82d (patch)
treeb7d4183f271cc5911288df116bcddd39aca1cc78 /Lib/test/test_contextlib.py
parent430f657c67f21be03dce8bcfc4ae163c97b04a8d (diff)
parent05da525e55a5db2e2e3c81e413e69c4a6f0a1db9 (diff)
downloadcpython-4df3b1a19544c52f93dacfd577559d4bd3a0c82d.zip
cpython-4df3b1a19544c52f93dacfd577559d4bd3a0c82d.tar.gz
cpython-4df3b1a19544c52f93dacfd577559d4bd3a0c82d.tar.bz2
Issue #25322: Merge contextlib.suppress test fix from 3.5
Diffstat (limited to 'Lib/test/test_contextlib.py')
-rw-r--r--Lib/test/test_contextlib.py4
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()