diff options
author | Martin Panter <vadmium+py@gmail.com> | 2015-10-10 11:04:44 (GMT) |
---|---|---|
committer | Martin Panter <vadmium+py@gmail.com> | 2015-10-10 11:04:44 (GMT) |
commit | 7c6420a552eb540e03f0d6c75f5a0557803c3850 (patch) | |
tree | 209ee23ff2fdd5f031ce1735f8392bb604cbf9a3 /Lib | |
parent | d21e0b52f1421e253ecdc583faf5743133cac605 (diff) | |
download | cpython-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.py | 4 |
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() |