File executable.patch of Package python3-check-manifest

---
 tests.py |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

--- a/tests.py
+++ b/tests.py
@@ -2,6 +2,7 @@ import codecs
 import doctest
 import locale
 import os
+import os.path
 import subprocess
 import sys
 import tarfile
@@ -1368,9 +1369,11 @@ class TestCheckManifest(unittest.TestCas
         # https://github.com/mgedmin/check-manifest/issues/57
         # NB: this test assumes you have a 'python' executable somewhere
         # in your path.
+        # Don't assume, make sure
+        py_exec = os.path.basename(sys.executable)
         from check_manifest import check_manifest
         subdir = self._create_repo_with_code_in_subdir()
-        self.assertTrue(check_manifest(subdir, python='python'))
+        self.assertTrue(check_manifest(subdir, python=py_exec))
 
     def test_suggestions(self):
         from check_manifest import check_manifest
openSUSE Build Service is sponsored by