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

Method testReadLinesMultiStream

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

Source from the content-addressed store, hash-verified

220 self.assertEqual(bz2f.readlines(), self.TEXT_LINES)
221
222 def testReadLinesMultiStream(self):
223 self.createTempFile(streams=5)
224 with BZ2File(self.filename) as bz2f:
225 self.assertRaises(TypeError, bz2f.readlines, None)
226 self.assertEqual(bz2f.readlines(), self.TEXT_LINES * 5)
227
228 def testIterator(self):
229 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