forked from pool/python-google-auth
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:
23
no-python3.patch
Normal file
23
no-python3.patch
Normal 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;"
|
||||
Reference in New Issue
Block a user