mirror of
https://github.com/saltstack/salt.git
synced 2025-04-16 17:50:20 +00:00
Skip tests that require newer python
This commit is contained in:
parent
e899bf426e
commit
2404b3222c
1 changed files with 4 additions and 0 deletions
|
@ -8,6 +8,7 @@ import time
|
|||
import pytest
|
||||
from saltfactories.utils.tempfiles import temp_file
|
||||
|
||||
from tests.pytests.integration.ssh.test_slsutil import check_system_python_version
|
||||
from tests.support.case import SSHCase
|
||||
from tests.support.runtests import RUNTIME_VARS
|
||||
|
||||
|
@ -22,6 +23,9 @@ pytestmark = [
|
|||
# has been deprecated since Python 3.7, so, the logic goes into trying to import
|
||||
# backports.ssl-match-hostname which is not installed on the system.
|
||||
),
|
||||
pytest.mark.skipif(
|
||||
not check_system_python_version(), reason="Needs system python >= 3.8"
|
||||
),
|
||||
]
|
||||
|
||||
SSH_SLS = "ssh_state_tests"
|
||||
|
|
Loading…
Add table
Reference in a new issue