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

Method test_file_not_closed

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

Source from the content-addressed store, hash-verified

3100 self.assert_files_eq(TESTFN, TESTFN2)
3101
3102 def test_file_not_closed(self):
3103 with self.get_files() as (src, dst):
3104 shutil.copyfileobj(src, dst)
3105 assert not src.closed
3106 assert not dst.closed
3107
3108 def test_file_offset(self):
3109 with self.get_files() as (src, dst):

Callers

nothing calls this directly

Calls 1

get_filesMethod · 0.95

Tested by

no test coverage detected