MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / __exit__

Method __exit__

test/test_sockets.py:145–152  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

143 return self
144
145 def __exit__(self, *args, **kwargs):
146 # try to kill the websockify proxy gracefully
147 if self.websockify.is_alive():
148 self.websockify.terminate()
149 self.websockify.join()
150
151 # clean up any processes we started
152 self.clean_processes()
153
154 def clean_processes(self):
155 for p in self.processes:

Callers

nothing calls this directly

Calls 3

clean_processesMethod · 0.95
terminateMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected