(self)
| 3280 | self.assertEqual(read_file(TESTFN2, binary=True), self.FILEDATA) |
| 3281 | |
| 3282 | def test_non_regular_file_dst(self): |
| 3283 | with open(TESTFN, "rb") as src: |
| 3284 | with io.BytesIO() as dst: |
| 3285 | with self.assertRaises(_GiveupOnFastCopy): |
| 3286 | self.zerocopy_fun(src, dst) |
| 3287 | shutil.copyfileobj(src, dst) |
| 3288 | dst.seek(0) |
| 3289 | self.assertEqual(dst.read(), self.FILEDATA) |
| 3290 | |
| 3291 | def test_exception_on_second_call(self): |
| 3292 | def syscall(*args, **kwargs): |
nothing calls this directly
no test coverage detected