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

Function pickle_with_and_without_subtree_filesystem

python/pyarrow/tests/test_fs.py:651–657  ·  view source on GitHub ↗
(pickle_module, request)

Source from the content-addressed store, hash-verified

649
650@pytest.fixture(params=[True, False])
651def pickle_with_and_without_subtree_filesystem(pickle_module, request):
652 # When creating a SubTreeFileSystem, the python side object for the base
653 # filesystem is lost. This makes it a pickling scenario worth testing.
654 wrap_with_subtree_filesystem = request.param
655 if wrap_with_subtree_filesystem:
656 return _PickleModuleSubTreeFileSystemWrapper(pickle_module)
657 return pickle_module
658
659
660def test_filesystem_pickling(fs, pickle_with_and_without_subtree_filesystem):

Callers

nothing calls this directly

Tested by

no test coverage detected