Skip to content

Commit ed1a639

Browse files
tests
1 parent 4a13d36 commit ed1a639

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

test/integration/test_io_raw_terminal.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
"""
55

66
__author__ = 'Marcin Usielski, Michal Ernst'
7-
__copyright__ = 'Copyright (C) 2018-2019, Nokia'
7+
__copyright__ = 'Copyright (C) 2018-2026, Nokia'
88
__email__ = 'marcin.usielski@nokia.com, michal.ernst@nokia.com'
99

1010
import getpass
11-
11+
import sys
1212
import pytest
1313

1414
from moler.cmd.unix.ls import Ls
@@ -17,6 +17,7 @@
1717
from moler.cmd.unix.lsof import Lsof
1818
from moler.exceptions import CommandTimeout
1919
from moler.io.raw.terminal import ThreadedTerminal
20+
from moler.io.raw.terminal_no_forkpty import ThreadedTerminalNoForkPTY
2021

2122

2223
def test_terminal_cmd_whoami_during_ping(terminal_connection):
@@ -88,7 +89,10 @@ def terminal_connection():
8889
from moler.threaded_moler_connection import ThreadedMolerConnection
8990

9091
moler_conn = ThreadedMolerConnection()
91-
terminal = ThreadedTerminal(moler_connection=moler_conn)
92+
if sys.version_info >= (3, 11):
93+
terminal = ThreadedTerminalNoForkPTY(moler_connection=moler_conn)
94+
else:
95+
terminal = ThreadedTerminal(moler_connection=moler_conn)
9296

9397
with terminal.open() as connection:
9498
yield connection.moler_connection

0 commit comments

Comments
 (0)