(self, boundary)
| 933 | # Issue 11277: mmap() with large (~4 GiB) sparse files crashes on OS X. |
| 934 | |
| 935 | def _test_around_boundary(self, boundary): |
| 936 | tail = b' DEARdear ' |
| 937 | start = boundary - len(tail) // 2 |
| 938 | end = start + len(tail) |
| 939 | with self._make_test_file(start, tail) as f: |
| 940 | with mmap.mmap(f.fileno(), 0, access=mmap.ACCESS_READ) as m: |
| 941 | self.assertEqual(m[start:end], tail) |
| 942 | |
| 943 | @unittest.skipUnless(sys.maxsize > _4G, "test cannot run on 32-bit systems") |
| 944 | def test_around_2GB(self): |
no test coverage detected