MCPcopy Index your code
hub / github.com/python/cpython / test_issue44439

Method test_issue44439

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

Source from the content-addressed store, hash-verified

820 self.assertRaises(EOFError, f.read, 1)
821
822 def test_issue44439(self):
823 q = array.array('Q', [1, 2, 3, 4, 5])
824 LENGTH = len(q) * q.itemsize
825
826 with BZ2File(BytesIO(), 'w') as f:
827 self.assertEqual(f.write(q), LENGTH)
828 self.assertEqual(f.tell(), LENGTH)
829
830
831class BZ2CompressorTest(BaseTest):

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected