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

Method test_file_offset

Lib/test/test_shutil.py:3134–3138  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

3132 assert not dst.closed
3133
3134 def test_file_offset(self):
3135 with self.get_files() as (src, dst):
3136 shutil.copyfileobj(src, dst)
3137 self.assertEqual(src.tell(), self.FILESIZE)
3138 self.assertEqual(dst.tell(), self.FILESIZE)
3139
3140 @unittest.skipIf(os.name != 'nt', "Windows only")
3141 def test_win_impl(self):

Callers

nothing calls this directly

Calls 3

get_filesMethod · 0.95
assertEqualMethod · 0.45
tellMethod · 0.45

Tested by

no test coverage detected