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

Method testReadLinesMultiStream

Lib/test/test_bz2.py:232–236  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

230 self.assertEqual(bz2f.readlines(), self.TEXT_LINES)
231
232 def testReadLinesMultiStream(self):
233 self.createTempFile(streams=5)
234 with BZ2File(self.filename) as bz2f:
235 self.assertRaises(TypeError, bz2f.readlines, None)
236 self.assertEqual(bz2f.readlines(), self.TEXT_LINES * 5)
237
238 def testIterator(self):
239 self.createTempFile()

Callers

nothing calls this directly

Calls 5

createTempFileMethod · 0.95
BZ2FileClass · 0.90
assertRaisesMethod · 0.45
assertEqualMethod · 0.45
readlinesMethod · 0.45

Tested by

no test coverage detected