MCPcopy Create free account
hub / github.com/EasyIME/PIME / tearDown

Method tearDown

python/python3/tornado/test/httpserver_test.py:823–831  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

821 self.http_version = b"HTTP/1.1"
822
823 def tearDown(self):
824 # We just closed the client side of the socket; let the IOLoop run
825 # once to make sure the server side got the message.
826 self.io_loop.add_timeout(datetime.timedelta(seconds=0.001), self.stop)
827 self.wait()
828
829 if hasattr(self, "stream"):
830 self.stream.close()
831 super().tearDown()
832
833 # The next few methods are a crude manual http client
834 @gen.coroutine

Callers 3

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