Skip to content

Commit

Permalink
more platform removal
Browse files Browse the repository at this point in the history
  • Loading branch information
minrk committed Oct 28, 2024
1 parent 4bd67ef commit 0d677b2
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions ipyparallel/tests/test_shellcmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,12 +113,10 @@
@pytest.fixture
def shellcmd_test_cmd():
"""returns a command that runs for 5 seconds"""
test_command = {}
test_command["windows"] = 'ping -n 5 127.0.0.1'
test_command["posix"] = (
'ping -c 5 127.0.0.1' # ping needs to be installed to the standard ubuntu docker image
)
return test_command
if sys.platform.startswith("win"):
return 'ping -n 5 127.0.0.1'
else:
return 'ping -c 5 127.0.0.1'


@pytest.mark.parametrize("platform, sender", senders, ids=sender_ids)
Expand Down Expand Up @@ -172,7 +170,7 @@ def print_file(shell, filename):
info = sender.get_shell_info()
assert len(info) == 2 and info[0] and info[1]

test_cmd = shellcmd_test_cmd[str(sender.platform.name.lower())]
test_cmd = shellcmd_test_cmd

python_ok = sender.has_python()
assert python_ok is True
Expand Down

0 comments on commit 0d677b2

Please sign in to comment.