--- tests/test__cloud_sdk.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- a/tests/test__cloud_sdk.py +++ b/tests/test__cloud_sdk.py @@ -16,6 +16,7 @@ import io import json import os import subprocess +import sys from unittest import mock import pytest # type: ignore @@ -73,7 +74,7 @@ def test_get_project_id_call_error(check def test__run_subprocess_ignore_stderr(): command = [ - "python", + sys.executable, "-c", "from __future__ import print_function;" + "import sys;"