Lines Matching refs:seek
95 # test seeking around (try to overflow the seek implementation)
96 m.seek(0,0)
98 m.seek(42,1)
100 m.seek(0,2)
103 # Try to seek to negative position...
104 self.assertRaises(ValueError, m.seek, -1)
106 # Try to seek beyond end of mmap...
107 self.assertRaises(ValueError, m.seek, 1, 2)
109 # Try to seek to negative position...
110 self.assertRaises(ValueError, m.seek, -len(m)-1, 2)
123 # Check that we can no longer seek beyond the new size.
124 self.assertRaises(ValueError, m.seek, 513, 0)
130 f.seek(0, 2)
165 m.seek(0,0)
174 m.seek(0,0)
428 m.seek(0)
430 m.seek(8)
432 m.seek(16)
434 m.seek(3)
436 m.seek(4)
438 m.seek(5)
440 m.seek(9)
538 # Check that we can no longer seek beyond the new size.
539 self.assertRaises(ValueError, m.seek, 513, 0)
545 f.seek(0, 2)
591 m.seek(0)
598 m.seek(3)
602 m.seek(3)
616 m.seek(0)
785 mm.seek(pos)
989 f.seek(num_zeroes)