summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorMartin Panter <vadmium+py@gmail.com>2015-10-10 11:04:44 (GMT)
committerMartin Panter <vadmium+py@gmail.com>2015-10-10 11:04:44 (GMT)
commit7c6420a552eb540e03f0d6c75f5a0557803c3850 (patch)
tree209ee23ff2fdd5f031ce1735f8392bb604cbf9a3 /Lib
parentd21e0b52f1421e253ecdc583faf5743133cac605 (diff)
downloadcpython-7c6420a552eb540e03f0d6c75f5a0557803c3850.zip
cpython-7c6420a552eb540e03f0d6c75f5a0557803c3850.tar.gz
cpython-7c6420a552eb540e03f0d6c75f5a0557803c3850.tar.bz2
Issue #25322: Fix test for nested contextlib.suppress
Diffstat (limited to 'Lib')
-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 8f849ae..2669651 100644
--- a/Lib/test/test_contextlib.py
+++ b/Lib/test/test_contextlib.py
@@ -828,9 +828,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()