15
0
Files
python-check-manifest/use-current-interpreter.patch
Dirk Mueller bc8d3b4bd1 Accepting request 1130350 from home:alarrosa:branches:devel:languages:python
- Add patch to use the current interpreter by default in the 
  TestCheckManifest::test_python_from_path test in SLE. Otherwise
  the test runs the python3.6 interpreter which doesn't work:
  * use-current-interpreter.patch

OBS-URL: https://build.opensuse.org/request/show/1130350
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-check-manifest?expand=0&rev=37
2023-12-02 08:41:24 +00:00

14 lines
648 B
Diff

Index: check-manifest-0.49/tests.py
===================================================================
--- check-manifest-0.49.orig/tests.py
+++ check-manifest-0.49/tests.py
@@ -1666,7 +1666,7 @@ class TestCheckManifest(unittest.TestCas
# We need a Python interpeter to be in PATH.
python = 'python'
if hasattr(shutil, 'which'):
- for python in 'python', 'python3', os.path.basename(sys.executable):
+ for python in os.path.basename(sys.executable), 'python', 'python3':
if shutil.which(python):
break
subdir = self._create_repo_with_code_in_subdir()