MCPcopy Create free account
hub / github.com/pexpect/pexpect / spawn

Method spawn

tests/test_socket.py:136–138  ·  view source on GitHub ↗

override me with other ways of spawning on a socket

(self, socket, timeout=30, use_poll=False)

Source from the content-addressed store, hash-verified

134 exit(0)
135
136 def spawn(self, socket, timeout=30, use_poll=False):
137 """override me with other ways of spawning on a socket"""
138 return socket_pexpect.SocketSpawn(socket, timeout=timeout, use_poll=use_poll)
139
140 def socket_fn(self, timed_out, all_read):
141 result = 0

Callers 15

socket_fnMethod · 0.95
test_socketMethod · 0.95
test_timeoutMethod · 0.95
test_maxreadMethod · 0.95
test_fd_isaliveMethod · 0.95
test_fd_isalive_pollMethod · 0.95
test_fd_isattyMethod · 0.95
test_fd_isatty_pollMethod · 0.95
detect_maxcanonFunction · 0.45
_spawnptyMethod · 0.45
__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected