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

Method test_failure

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

Source from the content-addressed store, hash-verified

1018 self.assertEqual(b''.join(out), self.TEXT)
1019
1020 def test_failure(self):
1021 bzd = BZ2Decompressor()
1022 self.assertRaises(Exception, bzd.decompress, self.BAD_DATA * 30)
1023 # Previously, a second call could crash due to internal inconsistency
1024 self.assertRaises(Exception, bzd.decompress, self.BAD_DATA * 30)
1025
1026 @support.refcount_test
1027 def test_refleaks_in___init__(self):

Callers

nothing calls this directly

Calls 2

BZ2DecompressorClass · 0.90
assertRaisesMethod · 0.45

Tested by

no test coverage detected