(self, boundary)
| 1268 | # Issue 11277: mmap() with large (~4 GiB) sparse files crashes on OS X. |
| 1269 | |
| 1270 | def _test_around_boundary(self, boundary): |
| 1271 | tail = b' DEARdear ' |
| 1272 | start = boundary - len(tail) // 2 |
| 1273 | end = start + len(tail) |
| 1274 | with self._make_test_file(start, tail) as f: |
| 1275 | with mmap.mmap(f.fileno(), 0, access=mmap.ACCESS_READ) as m: |
| 1276 | self.assertEqual(m[start:end], tail) |
| 1277 | |
| 1278 | @unittest.skipUnless(sys.maxsize > _4G, "test cannot run on 32-bit systems") |
| 1279 | def test_around_2GB(self): |
no test coverage detected