File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments