(self)
| 3180 | # --- |
| 3181 | |
| 3182 | def test_regular_copy(self): |
| 3183 | with self.get_files() as (src, dst): |
| 3184 | self.zerocopy_fun(src, dst) |
| 3185 | self.assertEqual(read_file(TESTFN2, binary=True), self.FILEDATA) |
| 3186 | # Make sure the fallback function is not called. |
| 3187 | with self.get_files() as (src, dst): |
| 3188 | with unittest.mock.patch('shutil.copyfileobj') as m: |
| 3189 | shutil.copyfile(TESTFN, TESTFN2) |
| 3190 | assert not m.called |
| 3191 | |
| 3192 | def test_same_file(self): |
| 3193 | self.addCleanup(self.reset) |
nothing calls this directly
no test coverage detected