14
0

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
This commit is contained in:
2023-02-22 20:10:17 +00:00
committed by Git OBS Bridge
parent be9b275f44
commit 61dfd155d6
4 changed files with 249 additions and 213 deletions

23
no-python3.patch Normal file
View File

@@ -0,0 +1,23 @@
---
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;"