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

Method test_readlines

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

Source from the content-addressed store, hash-verified

272 line_length = (line_length + 1) % 50
273
274 def test_readlines(self):
275 self.test_write()
276 # Try .readlines()
277
278 with gzip.GzipFile(self.filename, 'rb') as f:
279 L = f.readlines()
280
281 with gzip.GzipFile(self.filename, 'rb') as f:
282 while 1:
283 L = f.readlines(150)
284 if L == []: break
285
286 def test_seek_read(self):
287 self.test_write()

Callers

nothing calls this directly

Calls 2

test_writeMethod · 0.95
readlinesMethod · 0.45

Tested by

no test coverage detected