MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_seek_whence

Method test_seek_whence

Lib/test/test_gzip.py:306–314  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

304 f.seek(newpos) # positive seek
305
306 def test_seek_whence(self):
307 self.test_write()
308 # Try seek(whence=1), read test
309
310 with gzip.GzipFile(self.filename) as f:
311 f.read(10)
312 f.seek(10, whence=1)
313 y = f.read(10)
314 self.assertEqual(y, data1[20:30])
315
316 def test_seek_write(self):
317 # Try seek, write test

Callers

nothing calls this directly

Calls 4

test_writeMethod · 0.95
readMethod · 0.45
seekMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected