Skip to content

Commit 8712bff

Browse files
committed
Skip tests on macOS.
1 parent b7f9db8 commit 8712bff

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

tests/tests_integration/test_ssh_setup.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import builtins
22
import copy
3+
import platform
34

45
import pytest
56
import ssh_test_utils
@@ -11,7 +12,10 @@
1112
TEST_SSH = ssh_test_utils.get_test_ssh()
1213

1314

14-
@pytest.mark.skipif("not TEST_SSH", reason="TEST_SSH is false")
15+
@pytest.mark.skipif(
16+
platform.system == "Darwin", reason="Docker set up is not robust on macOS."
17+
)
18+
@pytest.mark.skipif(not TEST_SSH, reason="TEST_SSH is false")
1519
class TestSSH(BaseTest):
1620

1721
@pytest.fixture(scope="function")

tests/tests_integration/test_ssh_transfer.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import platform
12
import shutil
23

34
import paramiko
@@ -10,7 +11,10 @@
1011
TEST_SSH = ssh_test_utils.get_test_ssh()
1112

1213

13-
@pytest.mark.skipif("not TEST_SSH", reason="TEST_SSH is false")
14+
@pytest.mark.skipif(
15+
platform.system == "Darwin", reason="Docker set up is not robust on macOS."
16+
)
17+
@pytest.mark.skipif(not TEST_SSH, reason="TEST_SSH is false")
1418
class TestSSHTransfer(BaseTransfer):
1519

1620
@pytest.fixture(

0 commit comments

Comments
 (0)