summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Kluyver <takowl@gmail.com>2014-12-19 16:47:54 -0800
committerThomas Kluyver <takowl@gmail.com>2014-12-19 16:47:54 -0800
commit40e1aa43d60cfcc213c441ff66cf54d049c12317 (patch)
tree042d176df068f9235c5f8106d43d7164a76cf9dd
parent80398735116adf7ab9a36d7b44d6f18898ed6ecd (diff)
downloadpexpect-git-40e1aa43d60cfcc213c441ff66cf54d049c12317.tar.gz
Update test case for preexec_fn
-rwxr-xr-xtests/test_misc.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_misc.py b/tests/test_misc.py
index 28df570..be3d1e7 100755
--- 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)