[tor-commits] [stem/master] Test interpreter using our python version
atagar at torproject.org
atagar at torproject.org
Sun Jan 5 21:39:28 UTC 2020
commit 9082fe1e15b1f5995743b28db4e70223054eb2e5
Author: Damian Johnson <atagar at torproject.org>
Date: Fri Jan 3 14:08:00 2020 -0800
Test interpreter using our python version
Our interpreter's integ tests did not provide a python executable while
shelling out, and as such used our default python version rather than the
one we're testing against.
---
test/integ/interpreter.py | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/test/integ/interpreter.py b/test/integ/interpreter.py
index dc8466be..e3664d87 100644
--- a/test/integ/interpreter.py
+++ b/test/integ/interpreter.py
@@ -3,6 +3,7 @@ Tests invocation of our interpreter.
"""
import os
+import sys
import tempfile
import unittest
@@ -16,9 +17,9 @@ PROMPT_CMD = os.path.join(test.STEM_BASE, 'tor-prompt')
def _run_prompt(*args):
if test.runner.Torrc.SOCKET not in test.runner.get_runner().get_options():
- return stem.util.system.call([PROMPT_CMD, '--interface', test.runner.CONTROL_PORT] + list(args))
+ return stem.util.system.call([sys.executable, PROMPT_CMD, '--interface', test.runner.CONTROL_PORT] + list(args))
else:
- return stem.util.system.call([PROMPT_CMD, '--socket', test.runner.CONTROL_SOCKET_PATH] + list(args))
+ return stem.util.system.call([sys.executable, PROMPT_CMD, '--socket', test.runner.CONTROL_SOCKET_PATH] + list(args))
class TestInterpreter(unittest.TestCase):
More information about the tor-commits
mailing list