python-google-auth/no-python3.patch
Matej Cepl 61dfd155d6 Accepting request 1067209 from home:dirkmueller:acdc
- Add no-python3.patch replacing call of the
  string literal 'python3' with sys.executable
  (gh#googleapis/google-auth-library-python!1233).

OBS-URL: https://build.opensuse.org/request/show/1067209
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-google-auth?expand=0&rev=52
2023-02-22 20:10:17 +00:00

24 lines
551 B
Diff

---
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 = [
- "python3",
+ sys.executable,
"-c",
"from __future__ import print_function;"
+ "import sys;"