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

Method test_file_not_closed

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

Source from the content-addressed store, hash-verified

3126 self.assert_files_eq(TESTFN, TESTFN2)
3127
3128 def test_file_not_closed(self):
3129 with self.get_files() as (src, dst):
3130 shutil.copyfileobj(src, dst)
3131 assert not src.closed
3132 assert not dst.closed
3133
3134 def test_file_offset(self):
3135 with self.get_files() as (src, dst):

Callers

nothing calls this directly

Calls 1

get_filesMethod · 0.95

Tested by

no test coverage detected