Update test case for preexec_fn
authorThomas Kluyver <takowl@gmail.com>
Sat, 20 Dec 2014 00:47:54 +0000 (16:47 -0800)
committerThomas Kluyver <takowl@gmail.com>
Sat, 20 Dec 2014 00:47:54 +0000 (16:47 -0800)
tests/test_misc.py

index 28df570e6baedf31c84f3fe948882a3c8c3cd612..be3d1e79e9f55633ba7138532741f40928afc3a8 100755 (executable)
@@ -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)