MCPcopy Index your code
hub / github.com/python/cpython / test_large_offset

Method test_large_offset

Lib/test/test_mmap.py:1251–1254  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1249 return f
1250
1251 def test_large_offset(self):
1252 with self._make_test_file(0x14FFFFFFF, b" ") as f:
1253 with mmap.mmap(f.fileno(), 0, offset=0x140000000, access=mmap.ACCESS_READ) as m:
1254 self.assertEqual(m[0xFFFFFFF], 32)
1255
1256 def test_large_filesize(self):
1257 with self._make_test_file(0x17FFFFFFF, b" ") as f:

Callers

nothing calls this directly

Calls 3

_make_test_fileMethod · 0.95
filenoMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected