MCPcopy
hub / github.com/tornadoweb/tornado / TestServer

Class TestServer

tornado/test/tcpserver_test.py:22–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20 # handle_stream may be a coroutine and any exception in its
21 # Future will be logged.
22 class TestServer(TCPServer):
23 @gen.coroutine
24 def handle_stream(self, stream, address):
25 yield stream.read_bytes(len(b"hello"))
26 stream.close()
27 1 / 0
28
29 server = client = None
30 try:

Calls

no outgoing calls