git.samba.org
/
third_party
/
pexpect
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8039873
)
Update test case for preexec_fn
author
Thomas Kluyver
<takowl@gmail.com>
Sat, 20 Dec 2014 00:47:54 +0000
(16:47 -0800)
committer
Thomas Kluyver
<takowl@gmail.com>
Sat, 20 Dec 2014 00:47:54 +0000
(16:47 -0800)
tests/test_misc.py
patch
|
blob
|
history
diff --git
a/tests/test_misc.py
b/tests/test_misc.py
index 28df570e6baedf31c84f3fe948882a3c8c3cd612..be3d1e79e9f55633ba7138532741f40928afc3a8 100755
(executable)
--- a/
tests/test_misc.py
+++ b/
tests/test_misc.py
@@
-307,9
+307,9
@@
class TestCaseMisc(PexpectTestCase.PexpectTestCase):
" test forced self.__fork_pty() and __pty_make_controlling_tty "
# given,
class spawn_ourptyfork(pexpect.spawn):
- def _spawn(self, command, args=[]):
+ def _spawn(self, command, args=[]
, preexec_fn=None
):
self.use_native_pty_fork = False
- pexpect.spawn._spawn(self, command, args)
+ pexpect.spawn._spawn(self, command, args
, preexec_fn
)
# exercise,
p = spawn_ourptyfork('cat', echo=False)