summaryrefslogtreecommitdiff
path: root/tests/test_interact.py
diff options
context:
space:
mode:
authordluyer <53582923+dluyer@users.noreply.github.com>2019-08-07 09:33:45 -0700
committerThomas Kluyver <thomas@kluyver.me.uk>2019-08-07 17:33:45 +0100
commitecd3a19ee16723170f6ba583c92f0a0c51b02115 (patch)
tree14b8328dae966bebaeb4a525ee3a834379939013 /tests/test_interact.py
parent6a4fc7c3e54217d5d90956d51829beac0f475010 (diff)
downloadpexpect-git-ecd3a19ee16723170f6ba583c92f0a0c51b02115.tar.gz
Always use self.PYTHONBIN not 'python' or sys.executable in tests (#580)
* s/sys.executable/self.PYTHONBIN/ * s/sys.executable/self.PYTHONBIN/ * Update test_isalive.py * s/sys.executable/self.PYTHONBIN/ * s/sys.executable/self.PYTHONBIN/ * Support cases where pythonbin != sys.executable * Support cases where pythonbin != sys.executable * Fix raw use of 'python' to use self.PYTHONBIN * Fix test_pxssh.py when PYTHONBIN != 'python' The fake 'ssh' will be started via #!/usr/bin/env python, when it may need to use sys.executable or some other self.PYTHONBIN. * Remove unnecessary changes from pull request. * Remove unnecessary changes from pull request.
Diffstat (limited to 'tests/test_interact.py')
-rwxr-xr-xtests/test_interact.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_interact.py b/tests/test_interact.py
index 865353b..4afbd18 100755
--- a/tests/test_interact.py
+++ b/tests/test_interact.py
@@ -41,7 +41,7 @@ class InteractTestCase (PexpectTestCase.PexpectTestCase):
else:
env['PYTHONPATH'] = self.project_dir
- self.interact_py = ('{sys.executable} interact.py'.format(sys=sys))
+ self.interact_py = ('{self.PYTHONBIN} interact.py'.format(self=self))
def test_interact_escape(self):
" Ensure `escape_character' value exits interactive mode. "