File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 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
1010import getpass
11-
11+ import sys
1212import pytest
1313
1414from moler .cmd .unix .ls import Ls
1717from moler .cmd .unix .lsof import Lsof
1818from moler .exceptions import CommandTimeout
1919from moler .io .raw .terminal import ThreadedTerminal
20+ from moler .io .raw .terminal_no_forkpty import ThreadedTerminalNoForkPTY
2021
2122
2223def 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
You can’t perform that action at this time.
0 commit comments