Skip to content

Commit 300f54f

Browse files
committed
fix terminal test on Windows
1 parent 057b962 commit 300f54f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/test_terminal.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,4 +276,7 @@ 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 (expected_shell, ' '.join(expected_shell))
281+
else:
282+
assert app.web_app.settings["terminal_manager"].shell_command == expected_shell

0 commit comments

Comments
 (0)