Skip to content

Commit 2d2f829

Browse files
committed
More ssh test skips on python < 3.9
1 parent d9652b9 commit 2d2f829

File tree

4 files changed

+18
-0
lines changed

4 files changed

+18
-0
lines changed

tests/pytests/integration/ssh/state/test_pillar_override_template.py

+4
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,15 @@
1111
import pytest
1212

1313
import salt.utils.dictupdate
14+
from tests.pytests.integration.ssh import check_system_python_version
1415

1516
pytestmark = [
1617
pytest.mark.skip_on_windows(reason="salt-ssh not available on Windows"),
1718
pytest.mark.usefixtures("pillar_tree_nested"),
1819
pytest.mark.slow_test,
20+
pytest.mark.skipif(
21+
not check_system_python_version(), reason="Needs system python >= 3.9"
22+
),
1923
]
2024

2125

tests/pytests/integration/ssh/state/test_retcode_state_run_remote_exception.py

+4
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,14 @@
66
import pytest
77

88
from salt.defaults.exitcodes import EX_AGGREGATE
9+
from tests.pytests.integration.ssh import check_system_python_version
910

1011
pytestmark = [
1112
pytest.mark.skip_on_windows(reason="salt-ssh not available on Windows"),
1213
pytest.mark.slow_test,
14+
pytest.mark.skipif(
15+
not check_system_python_version(), reason="Needs system python >= 3.9"
16+
),
1317
]
1418

1519

tests/pytests/integration/ssh/state/test_state.py

+5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
import pytest
22

3+
from tests.pytests.integration.ssh import check_system_python_version
4+
35
pytestmark = [
46
pytest.mark.skip_on_windows(reason="salt-ssh not available on Windows"),
57
pytest.mark.slow_test,
8+
pytest.mark.skipif(
9+
not check_system_python_version(), reason="Needs system python >= 3.9"
10+
),
611
]
712

813

tests/pytests/integration/ssh/state/test_with_import_dir.py

+5
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,14 @@
66

77
import pytest
88

9+
from tests.pytests.integration.ssh import check_system_python_version
10+
911
pytestmark = [
1012
pytest.mark.skip_on_windows(reason="salt-ssh not available on Windows"),
1113
pytest.mark.slow_test,
14+
pytest.mark.skipif(
15+
not check_system_python_version(), reason="Needs system python >= 3.9"
16+
),
1217
]
1318

1419

0 commit comments

Comments
 (0)