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

Method test_trailers_overflow_32bits

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

Source from the content-addressed store, hash-verified

4006 @requires_headers_trailers
4007 @requires_32b
4008 async def test_trailers_overflow_32bits(self):
4009 self.server.handler_instance.accumulate = False
4010 with self.assertRaises(OSError) as cm:
4011 await self.async_sendfile(self.sockno, self.fileno, 0, 0,
4012 trailers=[b"x" * 2**16] * 2**15)
4013 self.assertEqual(cm.exception.errno, errno.EINVAL)
4014
4015 @requires_headers_trailers
4016 @unittest.skipUnless(hasattr(os, 'SF_NODISKIO'),

Callers

nothing calls this directly

Calls 3

async_sendfileMethod · 0.95
assertRaisesMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected