From c041fd3458a64d754d89b2dd850e87a4c7f934fe Mon Sep 17 00:00:00 2001 From: David Murphy < dmurphy@saltstack.com> Date: Wed, 13 Dec 2023 13:28:57 -0700 Subject: [PATCH] Updated python versions --- tests/pytests/functional/modules/test_cmdmod.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/pytests/functional/modules/test_cmdmod.py b/tests/pytests/functional/modules/test_cmdmod.py index a97d780a15f..4b388d01d43 100644 --- a/tests/pytests/functional/modules/test_cmdmod.py +++ b/tests/pytests/functional/modules/test_cmdmod.py @@ -26,7 +26,9 @@ def usermod(modules): @pytest.fixture(scope="module") def available_python_executable(): - yield salt.utils.path.which_bin(["python", "python2", "python2.6", "python2.7"]) + yield salt.utils.path.which_bin( + ["python", "python3", "python3.8", "python3.9", "python3.10"] + ) @pytest.fixture @@ -48,7 +50,7 @@ def running_username(): @pytest.fixture def script_contents(state_tree): _contents = """ - #!/usr/bin/env python + #!/usr/bin/env python3 import sys print(" ".join(sys.argv[1:])) """