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

Method test_issue44439

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

Source from the content-addressed store, hash-verified

811 self.assertRaises(EOFError, f.read, 1)
812
813 def test_issue44439(self):
814 q = array.array('Q', [1, 2, 3, 4, 5])
815 LENGTH = len(q) * q.itemsize
816
817 with BZ2File(BytesIO(), 'w') as f:
818 self.assertEqual(f.write(q), LENGTH)
819 self.assertEqual(f.tell(), LENGTH)
820
821
822class BZ2CompressorTest(BaseTest):

Callers

nothing calls this directly

Calls 6

BZ2FileClass · 0.90
BytesIOClass · 0.90
lenFunction · 0.85
assertEqualMethod · 0.45
writeMethod · 0.45
tellMethod · 0.45

Tested by

no test coverage detected