Skip to content

Commit

Permalink
fix: Do not use hardcoded string 'python', when you mean sys.executable.
Browse files Browse the repository at this point in the history
Perhaps fixes googleapis#1120
  • Loading branch information
mcepl committed Feb 23, 2023
1 parent 910f43b commit 8b5f6d0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test__cloud_sdk.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import json
import os
import subprocess
import sys

import mock
import pytest # type: ignore
Expand Down Expand Up @@ -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;"
Expand Down

0 comments on commit 8b5f6d0

Please sign in to comment.