forked from pool/python-efilter
- Add patch fix-executable.patch to fix tests OBS-URL: https://build.opensuse.org/request/show/800356 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-efilter?expand=0&rev=10
22 lines
773 B
Diff
22 lines
773 B
Diff
Index: efilter-1.6.0/efilter_tests/testlib.py
|
|
===================================================================
|
|
--- efilter-1.6.0.orig/efilter_tests/testlib.py
|
|
+++ efilter-1.6.0/efilter_tests/testlib.py
|
|
@@ -22,6 +22,7 @@ from builtins import object
|
|
__author__ = "Adam Sindelar <adamsh@google.com>"
|
|
|
|
import os
|
|
+import sys
|
|
import subprocess
|
|
import unittest
|
|
|
|
@@ -41,7 +42,7 @@ def get_fixture_path(name):
|
|
|
|
class EfilterTestCase(unittest.TestCase):
|
|
def runPythonScript(self, script_path, args=()):
|
|
- cmd = ["python", os.path.join(os.getcwd(), script_path)]
|
|
+ cmd = [sys.executable, os.path.join(os.getcwd(), script_path)]
|
|
cmd.extend(args)
|
|
proc = subprocess.Popen(args=cmd,
|
|
stdout=subprocess.PIPE,
|