MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_headers_overflow_32bits

Method test_headers_overflow_32bits

Lib/test/test_os.py:3999–4004  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

3997 @requires_headers_trailers
3998 @requires_32b
3999 async def test_headers_overflow_32bits(self):
4000 self.server.handler_instance.accumulate = False
4001 with self.assertRaises(OSError) as cm:
4002 await self.async_sendfile(self.sockno, self.fileno, 0, 0,
4003 headers=[b"x" * 2**16] * 2**15)
4004 self.assertEqual(cm.exception.errno, errno.EINVAL)
4005
4006 @requires_headers_trailers
4007 @requires_32b

Callers

nothing calls this directly

Calls 3

async_sendfileMethod · 0.95
assertRaisesMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected