- 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
14 lines
648 B
Diff
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()
|