Lines Matching refs:size
123 # Check that we can no longer seek beyond the new size.
134 self.assertEqual(m.size(), 512)
194 # Opening mmap with size too big
200 # CAUTION: This also changes the size of the file on disk, and
204 self.fail("Opening mmap with size+1 should work on Windows.")
208 self.fail("Opening mmap with size+1 should raise ValueError.")
338 self.assertEqual(len(mf), 2**16, "Map size should equal file size.")
390 for source, dest, size in itertools.product(offsets, offsets, offsets):
392 m.move(source, dest, size)
398 for source, dest, size in offsets:
399 self.assertRaises(ValueError, m.move, source, dest, size)
538 # Check that we can no longer seek beyond the new size.
548 self.assertEqual(m.size(), halfsize + 512)
663 mmap.mmap(-1, 5000, tagname=tagname)[:] # same tagname, but larger size
797 size = 2 * PAGESIZE
798 m = mmap.mmap(-1, size)
801 m.madvise(mmap.MADV_NORMAL, size)
810 self.assertEqual(m.madvise(mmap.MADV_NORMAL, PAGESIZE, size), None)
812 self.assertEqual(m.madvise(mmap.MADV_NORMAL, 0, size), None)
863 self.assertEqual(m1.size(), reduced_size)
885 self.assertEqual(m1.size(), start_size)
1015 self.assertEqual(m.size(), 0x180000000)