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

Method testReadBadFile

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

Source from the content-addressed store, hash-verified

113 self.assertEqual(bz2f.read(), self.TEXT)
114
115 def testReadBadFile(self):
116 self.createTempFile(streams=0, suffix=self.BAD_DATA)
117 with BZ2File(self.filename) as bz2f:
118 self.assertRaises(OSError, bz2f.read)
119
120 def testReadMultiStream(self):
121 self.createTempFile(streams=5)

Callers

nothing calls this directly

Calls 3

createTempFileMethod · 0.95
BZ2FileClass · 0.90
assertRaisesMethod · 0.45

Tested by

no test coverage detected