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

Method close_mmap

Lib/test/test_free_threading/test_mmap.py:220–222  ·  view source on GitHub ↗
(mm_obj)

Source from the content-addressed store, hash-verified

218
219 def test_close_and_closed(self):
220 def close_mmap(mm_obj):
221 mm_obj.close()
222 self.assertTrue(mm_obj.closed)
223
224 with mmap.mmap(ANONYMOUS_MEM, 1) as mm_obj:
225 run_concurrently(

Callers

nothing calls this directly

Calls 2

assertTrueMethod · 0.80
closeMethod · 0.45

Tested by

no test coverage detected