@mock_pty()
        def when_pty_True_we_use_pty_fork_and_os_exec(self):
            self._run(_, pty=True)
            # @mock_pty's asserts check os/pty calls for us.
when pty=True, we use pty.fork and os.exec*
dataset/ETHPy150Open pyinvoke/invoke/tests/runners.py/Local_.pty_and_pty_fallback.when_pty_True_we_use_pty_fork_and_os_exec