forked from pool/python-libcst
Update SPEC file
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-libcst?expand=0&rev=33
This commit is contained in:
36
replace-python-call.patch
Normal file
36
replace-python-call.patch
Normal file
@@ -0,0 +1,36 @@
|
||||
---
|
||||
libcst/codegen/generate.py | 2 +-
|
||||
libcst/codemod/tests/test_codemod_cli.py | 4 ++--
|
||||
2 files changed, 3 insertions(+), 3 deletions(-)
|
||||
|
||||
--- a/libcst/codegen/generate.py
|
||||
+++ b/libcst/codegen/generate.py
|
||||
@@ -69,7 +69,7 @@ def codegen_visitors() -> None:
|
||||
# by attempting to run codegen again in a new process.
|
||||
with open(os.devnull, "w") as devnull:
|
||||
subprocess.check_call(
|
||||
- ["python3", "-m", "libcst.codegen.gen_visitor_functions"],
|
||||
+ [sys.executable, "-m", "libcst.codegen.gen_visitor_functions"],
|
||||
cwd=base,
|
||||
stdout=devnull,
|
||||
)
|
||||
--- a/libcst/codemod/tests/test_codemod_cli.py
|
||||
+++ b/libcst/codemod/tests/test_codemod_cli.py
|
||||
@@ -4,7 +4,7 @@
|
||||
# LICENSE file in the root directory of this source tree.
|
||||
#
|
||||
|
||||
-
|
||||
+import sys
|
||||
import subprocess
|
||||
from pathlib import Path
|
||||
|
||||
@@ -16,7 +16,7 @@ class TestCodemodCLI(UnitTest):
|
||||
def test_codemod_formatter_error_input(self) -> None:
|
||||
rlt = subprocess.run(
|
||||
[
|
||||
- "python",
|
||||
+ sys.executable,
|
||||
"-m",
|
||||
"libcst.tool",
|
||||
"codemod",
|
||||
Reference in New Issue
Block a user