MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_file_offset

Method test_file_offset

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

Source from the content-addressed store, hash-verified

3106 assert not dst.closed
3107
3108 def test_file_offset(self):
3109 with self.get_files() as (src, dst):
3110 shutil.copyfileobj(src, dst)
3111 self.assertEqual(src.tell(), self.FILESIZE)
3112 self.assertEqual(dst.tell(), self.FILESIZE)
3113
3114 @unittest.skipIf(os.name != 'nt', "Windows only")
3115 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