MCPcopy Index your code
hub / github.com/huggingface/datasets / assert_deepcopy_without_bringing_data_in_memory

Function assert_deepcopy_without_bringing_data_in_memory

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

Source from the content-addressed store, hash-verified

67
68
69def assert_deepcopy_without_bringing_data_in_memory(table: MemoryMappedTable):
70 with assert_arrow_memory_doesnt_increase():
71 copied_table = copy.deepcopy(table)
72 assert isinstance(copied_table, MemoryMappedTable)
73 assert copied_table.table == table.table
74
75
76def assert_deepcopy_does_bring_data_in_memory(table: MemoryMappedTable):

Tested by

no test coverage detected