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

Function test_py_filesystem_pickling

python/pyarrow/tests/test_fs.py:1798–1808  ·  view source on GitHub ↗
(pickle_with_and_without_subtree_filesystem)

Source from the content-addressed store, hash-verified

1796
1797
1798def test_py_filesystem_pickling(pickle_with_and_without_subtree_filesystem):
1799 pickle_module = pickle_with_and_without_subtree_filesystem
1800 handler = DummyHandler()
1801 fs = PyFileSystem(handler)
1802
1803 serialized = pickle_module.dumps(fs)
1804 restored = pickle_module.loads(serialized)
1805 assert isinstance(restored, FileSystem)
1806 assert restored == fs
1807 assert restored.handler == handler
1808 assert restored.type_name == "py::dummy"
1809
1810
1811def test_py_filesystem_lifetime():

Callers

nothing calls this directly

Calls 3

DummyHandlerClass · 0.85
dumpsMethod · 0.80
loadsMethod · 0.80

Tested by

no test coverage detected