Skip to content

Commit

Permalink
fix: Do not use hardcoded string 'python', when you mean sys.executab…
Browse files Browse the repository at this point in the history
…le. (#1233)

Perhaps fixes #1120
  • Loading branch information
mcepl authored Feb 23, 2023
1 parent f19f610 commit 91ac8e6
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 91ac8e6

Please # to comment.