Skip to content

Commit 4bd67ef

Browse files
committed
remove Platform reference
1 parent 3055ae7 commit 4bd67ef

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ipyparallel/tests/test_shellcmd.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
import pytest
1111

12-
from ipyparallel.cluster.shellcmd import Platform, ShellCommandSend
12+
from ipyparallel.cluster.shellcmd import ShellCommandSend
1313

1414
windows_py_path = 'python'
1515
linux_py_path = '/opt/conda/bin/python3'
@@ -125,7 +125,7 @@ def shellcmd_test_cmd():
125125
def test_shellcmds(platform, sender, shellcmd_test_cmd, ssh_running):
126126
def read_via_shell(shell, filename):
127127
# small helper function to read a file via shell commands
128-
if shell.platform == Platform.Windows:
128+
if shell._win:
129129
content = shell.check_output(f"type {filename}").strip()
130130
else:
131131
content = shell.check_output(f"cat {filename}").strip()
@@ -139,7 +139,7 @@ def print_file(shell, filename):
139139
print(f"{idx:3}:{l}")
140140

141141
prefix = ""
142-
if Platform.get() == Platform.Windows:
142+
if sys.platform.startswith("win"):
143143
if platform == "wsl":
144144
pytest.skip("wsl deactivated") # comment to activate wsl tests
145145
prefix = "/home/" + os.environ["USERNAME"] + "/"

0 commit comments

Comments
 (0)