def test_issue44439(self):
    q = array.array('Q', [1, 2, 3, 4, 5])
    LENGTH = (len(q) * q.itemsize)
    with BZ2File(BytesIO(), 'w') as f:
        self.assertEqual(f.write(q), LENGTH)
        self.assertEqual(f.tell(), LENGTH)
def test_issue44439(self):
    q = array.array('Q', [1, 2, 3, 4, 5])
    LENGTH = (len(q) * q.itemsize)
    with BZ2File(BytesIO(), 'w') as f:
        self.assertEqual(f.write(q), LENGTH)
        self.assertEqual(f.tell(), LENGTH)