MCPcopy
hub / github.com/aio-libs/aiohttp / tearDown

Method tearDown

tests/test_client_request.py:415–423  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

413 self.connector = BaseConnector(loop=self.loop)
414
415 def tearDown(self):
416 self.connector.close()
417 try:
418 self.loop.stop()
419 self.loop.run_forever()
420 except RuntimeError: # loop is already closed
421 pass
422 self.loop.close()
423 gc.collect()
424
425 def test_no_content_length(self):
426 req = ClientRequest('get', 'http://python.org', loop=self.loop)

Callers

nothing calls this directly

Calls 2

closeMethod · 0.45
stopMethod · 0.45

Tested by

no test coverage detected