MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / disconnect

Method disconnect

tests/integration/test_mcp.py:71–78  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

69 ) from exc
70
71 def disconnect(self) -> None:
72 if self._sock:
73 try:
74 self._sock.close()
75 except Exception:
76 pass
77 self._sock = None
78 self._buf = b""
79
80 def __enter__(self):
81 self.connect()

Callers 9

__exit__Method · 0.95
mcpFunction · 0.95
fresh_mcpFunction · 0.95
safe_commandFunction · 0.45
safe_commandFunction · 0.45
closeMethod · 0.45
_fuzz_sendFunction · 0.45
_assert_server_aliveFunction · 0.45
test_batch_edge_casesFunction · 0.45

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected