(f)
| 458 | a = array.array('i', range(10)) |
| 459 | n = len(a.tobytes()) |
| 460 | def check(f): |
| 461 | with f: |
| 462 | self.assertEqual(f.write(a), n) |
| 463 | f.writelines((a,)) |
| 464 | check(self.BytesIO()) |
| 465 | check(self.FileIO(os_helper.TESTFN, "w")) |
| 466 | check(self.BufferedWriter(self.MockRawIO())) |
nothing calls this directly
no test coverage detected