From 72c9c82a8ecbc2726aaa490880dda39fe463df88 Mon Sep 17 00:00:00 2001 From: Steven Silvester Date: Sat, 5 Mar 2022 10:39:11 -0600 Subject: [PATCH] test if closed in terminate tests --- winpty/tests/test_ptyprocess.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/winpty/tests/test_ptyprocess.py b/winpty/tests/test_ptyprocess.py index 0529a5b6..425e8982 100644 --- a/winpty/tests/test_ptyprocess.py +++ b/winpty/tests/test_ptyprocess.py @@ -197,6 +197,7 @@ def test_terminate(pty_fixture): break assert not pty.isalive() + assert pty.closed @pytest.mark.timeout(30) @@ -213,6 +214,7 @@ def test_terminate_force(pty_fixture): break assert not pty.isalive() + assert pty.closed def test_terminate_loop(pty_fixture): @@ -237,6 +239,7 @@ def reader(): loop.close() assert not pty.isalive() + assert pty.closed def test_getwinsize(pty_fixture):