From 40e1aa43d60cfcc213c441ff66cf54d049c12317 Mon Sep 17 00:00:00 2001 From: Thomas Kluyver Date: Fri, 19 Dec 2014 16:47:54 -0800 Subject: Update test case for preexec_fn --- tests/test_misc.py | 4 ++-- 1 file 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) -- cgit v1.2.1