Skip to content

Commit 4552011

Browse files
committed
fix terminal test on Windows
1 parent e9735fc commit 4552011

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

tests/test_terminal.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,4 +276,10 @@ def test_shell_command_override(
276276
pytest.importorskip("traitlets", minversion=min_traitlets)
277277
argv = shlex.split(f"--ServerApp.terminado_settings={terminado_settings}")
278278
app = jp_configurable_serverapp(argv=argv)
279-
assert app.web_app.settings["terminal_manager"].shell_command == expected_shell
279+
if os.name == "nt":
280+
assert app.web_app.settings["terminal_manager"].shell_command in (
281+
expected_shell,
282+
" ".join(expected_shell),
283+
)
284+
else:
285+
assert app.web_app.settings["terminal_manager"].shell_command == expected_shell

0 commit comments

Comments
 (0)