Skip to content

Commit 14a5a0c

Browse files
test with both terminals
1 parent ed1a639 commit 14a5a0c

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

test/integration/test_io_raw_terminal.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -84,15 +84,13 @@ def test_terminal_lsof(terminal_connection):
8484
assert ret["NUMBER"] > 1
8585

8686

87-
@pytest.fixture()
88-
def terminal_connection():
87+
@pytest.fixture(params=[ThreadedTerminal, ThreadedTerminalNoForkPTY])
88+
def terminal_connection(request):
8989
from moler.threaded_moler_connection import ThreadedMolerConnection
9090

91+
terminal_class = request.param
9192
moler_conn = ThreadedMolerConnection()
92-
if sys.version_info >= (3, 11):
93-
terminal = ThreadedTerminalNoForkPTY(moler_connection=moler_conn)
94-
else:
95-
terminal = ThreadedTerminal(moler_connection=moler_conn)
93+
terminal = terminal_class(moler_connection=moler_conn)
9694

9795
with terminal.open() as connection:
9896
yield connection.moler_connection

0 commit comments

Comments
 (0)