diff options
author | dluyer <53582923+dluyer@users.noreply.github.com> | 2020-01-09 14:27:40 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-09 14:27:40 -0800 |
commit | e62022859afaa1d5e435d75fe4ea5491c1323dd9 (patch) | |
tree | 1c010f3e67ceeaa2bf1923a8bb3a4890d2f4da90 /tests/test_misc.py | |
parent | 7ab86626d1e88a7f844865c598658121e2f68a42 (diff) | |
parent | e99f21c595af125a72d8fbb5bc562917ba24eff9 (diff) | |
download | pexpect-git-e62022859afaa1d5e435d75fe4ea5491c1323dd9.tar.gz |
Merge pull request #3 from dluyer/master
Merge updates from master
Diffstat (limited to 'tests/test_misc.py')
-rwxr-xr-x | tests/test_misc.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_misc.py b/tests/test_misc.py index 6052b6a..7784759 100755 --- a/tests/test_misc.py +++ b/tests/test_misc.py @@ -171,7 +171,7 @@ class TestCaseMisc(PexpectTestCase.PexpectTestCase): def test_with(self): "spawn can be used as a context manager" - with pexpect.spawn(sys.executable + ' echo_w_prompt.py') as p: + with pexpect.spawn(self.PYTHONBIN + ' echo_w_prompt.py') as p: p.expect('<in >') p.sendline(b'alpha') p.expect(b'<out>alpha') @@ -187,7 +187,7 @@ class TestCaseMisc(PexpectTestCase.PexpectTestCase): def test_sighup(self): " validate argument `ignore_sighup=True` and `ignore_sighup=False`. " - getch = sys.executable + ' getch.py' + getch = self.PYTHONBIN + ' getch.py' child = pexpect.spawn(getch, ignore_sighup=True) child.expect('READY') child.kill(signal.SIGHUP) |