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

Method close

Lib/test/test_shutil.py:583–587  ·  view source on GitHub ↗
(fd)

Source from the content-addressed store, hash-verified

581 dir2 = os.path.join(dir1, 'dir2')
582 os.mkdir(dir2)
583 def close(fd):
584 orig_close(fd)
585 nonlocal close_count
586 close_count += 1
587 raise OSError
588
589 close_count = 0
590 with support.swap_attr(os, 'close', close) as orig_close:

Calls

no outgoing calls

Tested by

no test coverage detected