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

Function py_fsspec_memoryfs

python/pyarrow/tests/test_fs.py:372–383  ·  view source on GitHub ↗
(request, tempdir)

Source from the content-addressed store, hash-verified

370
371@pytest.fixture
372def py_fsspec_memoryfs(request, tempdir):
373 fsspec = pytest.importorskip("fsspec", minversion="0.7.5")
374 if fsspec.__version__ == "0.8.5":
375 # see https://issues.apache.org/jira/browse/ARROW-10934
376 pytest.skip("Bug in fsspec 0.8.5 for in-memory filesystem")
377 fs = fsspec.filesystem('memory')
378 return dict(
379 fs=PyFileSystem(FSSpecHandler(fs)),
380 pathfn=lambda p: p,
381 allow_move_dir=True,
382 allow_append_to_file=True,
383 )
384
385
386@pytest.fixture

Callers

nothing calls this directly

Calls 2

FSSpecHandlerClass · 0.90
filesystemMethod · 0.80

Tested by

no test coverage detected