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

Method test_fd_isatty

tests/test_socket.py:250–255  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

248 assert not session.isalive(), "Should not be alive after close()"
249
250 def test_fd_isatty(self):
251 sock = socket.socket(self.af, socket.SOCK_STREAM)
252 sock.connect((self.host, self.port))
253 session = self.spawn(sock, timeout=10)
254 assert not session.isatty()
255 session.close()
256
257 def test_fd_isatty_poll(self):
258 sock = socket.socket(self.af, socket.SOCK_STREAM)

Callers

nothing calls this directly

Calls 3

spawnMethod · 0.95
isattyMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected