MCPcopy Index your code
hub / github.com/python/cpython / stop

Method stop

Lib/test/test_asyncio/test_ssl.py:1839–1850  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1837 self._test = test
1838
1839 def stop(self):
1840 try:
1841 if self._s2 and self._s2.fileno() != -1:
1842 try:
1843 self._s2.send(b'stop')
1844 except OSError:
1845 pass
1846 finally:
1847 super().stop()
1848 self._sock.close()
1849 self._s1.close()
1850 self._s2.close()
1851
1852 def run(self):
1853 self._sock.setblocking(False)

Callers

nothing calls this directly

Calls 5

superClass · 0.85
filenoMethod · 0.45
sendMethod · 0.45
stopMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected