From 91ac8e66396fd2335f2be6e7b40dc5c4f6e47bc2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C4=9Bj=20Cepl?= Date: Thu, 23 Feb 2023 23:39:25 +0100 Subject: [PATCH] fix: Do not use hardcoded string 'python', when you mean sys.executable. (#1233) Perhaps fixes #1120 --- tests/test__cloud_sdk.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test__cloud_sdk.py b/tests/test__cloud_sdk.py index c05c44320..160e1f1a4 100644 --- a/tests/test__cloud_sdk.py +++ b/tests/test__cloud_sdk.py @@ -16,6 +16,7 @@ import json import os import subprocess +import sys import mock import pytest # type: ignore @@ -73,7 +74,7 @@ def test_get_project_id_call_error(check_output): def test__run_subprocess_ignore_stderr(): command = [ - "python", + sys.executable, "-c", "from __future__ import print_function;" + "import sys;"