cpython: ebc82b840163 (original) (raw)

Mercurial > cpython

changeset 102105:ebc82b840163

Added more tests for issue #27122. [#27122]

Serhiy Storchaka storchaka@gmail.com
date Mon, 20 Jun 2016 05:30:31 +0300
parents 7b9ad68db14e(current diff)a14b93a4eb49(diff)
children 55ecc8fd88ac
files Lib/test/test_contextlib.py
diffstat 1 files changed, 10 insertions(+), 4 deletions(-)[+] [-] Lib/test/test_contextlib.py 14

line wrap: on

line diff

--- a/Lib/test/test_contextlib.py +++ b/Lib/test/test_contextlib.py @@ -796,8 +796,9 @@ class TestExitStack(unittest.TestCase): self.assertIs(stack._exit_callbacks[-1], cm) def test_dont_reraise_RuntimeError(self):

@contextmanager def second(): @@ -813,15 +814,20 @@ class TestExitStack(unittest.TestCase): except Exception as exc: raise exc

class TestRedirectStream: