MCPcopy
hub / github.com/huggingface/datasets / assert_deepcopy_does_bring_data_in_memory

Function assert_deepcopy_does_bring_data_in_memory

tests/test_table.py:76–80  ·  view source on GitHub ↗
(table: MemoryMappedTable)

Source from the content-addressed store, hash-verified

74
75
76def assert_deepcopy_does_bring_data_in_memory(table: MemoryMappedTable):
77 with assert_arrow_memory_increases():
78 copied_table = copy.deepcopy(table)
79 assert isinstance(copied_table, MemoryMappedTable)
80 assert copied_table.table == table.table
81
82
83def assert_pickle_without_bringing_data_in_memory(table: MemoryMappedTable):

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected