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

Method testEOFError

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

Source from the content-addressed store, hash-verified

900 self.assertEqual(bz2d.unused_data, unused_data)
901
902 def testEOFError(self):
903 bz2d = BZ2Decompressor()
904 text = bz2d.decompress(self.DATA)
905 self.assertRaises(EOFError, bz2d.decompress, b"anything")
906 self.assertRaises(EOFError, bz2d.decompress, b"")
907
908 @support.skip_if_pgo_task
909 @bigmemtest(size=_4G + 100, memuse=3.3)

Callers

nothing calls this directly

Calls 3

decompressMethod · 0.95
BZ2DecompressorClass · 0.90
assertRaisesMethod · 0.45

Tested by

no test coverage detected