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

Method test_readlines

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

test_writeMethod · 0.95
readlinesMethod · 0.45

Tested by

no test coverage detected