Skip tests that require newer python

This commit is contained in:
Daniel A. Wozniak 2025-02-18 21:00:17 -07:00
parent e899bf426e
commit 2404b3222c

View file

@ -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"