MCPcopy Create free account
hub / github.com/apache/arrow / test_memory_map_close_remove

Function test_memory_map_close_remove

python/pyarrow/tests/test_io.py:1242–1248  ·  view source on GitHub ↗
(tmpdir)

Source from the content-addressed store, hash-verified

1240
1241
1242def test_memory_map_close_remove(tmpdir):
1243 # ARROW-6740: should be able to delete closed memory-mapped file (Windows)
1244 path = os.path.join(str(tmpdir), guid())
1245 mmap = pa.create_memory_map(path, 4096)
1246 mmap.close()
1247 assert mmap.closed
1248 os.remove(path) # Shouldn't fail
1249
1250
1251def test_memory_map_deref_remove(tmpdir):

Callers

nothing calls this directly

Calls 3

guidFunction · 0.90
joinMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected