MCPcopy Index your code
hub / github.com/python/cpython / test_seek_whence

Method test_seek_whence

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

Source from the content-addressed store, hash-verified

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