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:1241–1247  ·  view source on GitHub ↗
(tmpdir)

Source from the content-addressed store, hash-verified

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