mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 23:13:25 +00:00
Always start python via shebang lines.
This is preparation for supporting using Python 3 in production. Signed-off-by: Anders Kaseorg <andersk@mit.edu>
This commit is contained in:
committed by
Tim Abbott
parent
2d6525df04
commit
207cf6302b
@@ -107,7 +107,7 @@ def run_test(test):
|
||||
print("Actual test to be run is %s, but import failed." % (actual_test_name,))
|
||||
print("Importing test module directly to generate clearer traceback:")
|
||||
try:
|
||||
command = ["python", "-c", "import %s" % (actual_test_name,)]
|
||||
command = [sys.executable, "-c", "import %s" % (actual_test_name,)]
|
||||
print("Import test command: `%s`" % (' '.join(command),))
|
||||
subprocess.check_call(command)
|
||||
except subprocess.CalledProcessError:
|
||||
|
||||
Reference in New Issue
Block a user