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

Method test_invalid_offset

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

Source from the content-addressed store, hash-verified

3940 self.assertEqual(self.server_buffer, b'')
3941
3942 async def test_invalid_offset(self):
3943 with self.assertRaises(OSError) as cm:
3944 await self.async_sendfile(self.sockno, self.fileno, -1, 4096)
3945 self.assertEqual(cm.exception.errno, errno.EINVAL)
3946
3947 async def test_keywords(self):
3948 # Keyword arguments should be supported

Callers

nothing calls this directly

Calls 3

async_sendfileMethod · 0.95
assertRaisesMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected