From 52803777b7781428b785dd46549f27c4e1a83485 Mon Sep 17 00:00:00 2001 From: Vidar Tonaas Fauske <510760+vidartf@users.noreply.github.com> Date: Thu, 3 Nov 2022 12:38:36 +0000 Subject: [PATCH] fix terminal test on Windows --- tests/test_terminal.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/test_terminal.py b/tests/test_terminal.py index f011f2abef..3260548f3e 100644 --- a/tests/test_terminal.py +++ b/tests/test_terminal.py @@ -276,4 +276,10 @@ def test_shell_command_override( pytest.importorskip("traitlets", minversion=min_traitlets) argv = shlex.split(f"--ServerApp.terminado_settings={terminado_settings}") app = jp_configurable_serverapp(argv=argv) - assert app.web_app.settings["terminal_manager"].shell_command == expected_shell + if os.name == "nt": + assert app.web_app.settings["terminal_manager"].shell_command in ( + expected_shell, + " ".join(expected_shell), + ) + else: + assert app.web_app.settings["terminal_manager"].shell_command == expected_shell