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

Method testReadMultiStream

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

Source from the content-addressed store, hash-verified

118 self.assertRaises(OSError, bz2f.read)
119
120 def testReadMultiStream(self):
121 self.createTempFile(streams=5)
122 with BZ2File(self.filename) as bz2f:
123 self.assertRaises(TypeError, bz2f.read, float())
124 self.assertEqual(bz2f.read(), self.TEXT * 5)
125
126 def testReadMonkeyMultiStream(self):
127 # Test BZ2File.read() on a multi-stream archive where a stream

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected