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

Method tearDown

tornado/test/httpserver_test.py:954–962  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

952 self.http_version = b"HTTP/1.1"
953
954 def tearDown(self):
955 # We just closed the client side of the socket; let the IOLoop run
956 # once to make sure the server side got the message.
957 self.io_loop.add_timeout(datetime.timedelta(seconds=0.001), self.stop)
958 self.wait()
959
960 if hasattr(self, "stream"):
961 self.stream.close()
962 super().tearDown()
963
964 # The next few methods are a crude manual http client
965 @gen.coroutine

Callers 4

tearDownMethod · 0.45
tearDownMethod · 0.45
tearDownMethod · 0.45
tearDownMethod · 0.45

Calls 3

add_timeoutMethod · 0.80
waitMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected