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

Method test_close_deprecated

tests/test_client_response.py:256–260  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

254 self.assertEqual(self.response._get_encoding(), 'utf-8')
255
256 def test_close_deprecated(self):
257 self.response._connection = self.connection
258 with self.assertWarns(DeprecationWarning):
259 self.response.close(force=False)
260 self.assertIsNone(self.response._connection)

Callers

nothing calls this directly

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected