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

Method broken

tests/test_client_functional_oldstyle.py:1364–1374  ·  view source on GitHub ↗
(self, match)

Source from the content-addressed store, hash-verified

1362
1363 @test_utils.Router.define('/broken$')
1364 def broken(self, match):
1365 resp = self._start_response(200)
1366
1367 def write_body(resp, body):
1368 self._transport.close()
1369 raise ValueError()
1370
1371 self._response(
1372 resp,
1373 body=json.dumps({'t': (b'0' * 1024).decode('utf-8')}),
1374 write_body=write_body)

Callers

nothing calls this directly

Calls 3

_start_responseMethod · 0.80
_responseMethod · 0.80
decodeMethod · 0.80

Tested by

no test coverage detected