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

Method close

tests/utils/virtual_serial.py:124–127  ·  view source on GitHub ↗

Close both PTY pairs.

(self)

Source from the content-addressed store, hash-verified

122 self.bravo.open()
123
124 def close(self) -> None:
125 """Close both PTY pairs."""
126 self.alpha.close()
127 self.bravo.close()
128
129 def __enter__(self):
130 self.open()

Callers 7

dual_portsFunction · 0.95
__exit__Method · 0.95
virtual_serial.pyFile · 0.45
closeMethod · 0.45
stopMethod · 0.45
_server_loopMethod · 0.45
disconnectMethod · 0.45

Calls

no outgoing calls

Tested by 1

dual_portsFunction · 0.76