(request, tempdir)
| 370 | |
| 371 | @pytest.fixture |
| 372 | def 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 |
nothing calls this directly
no test coverage detected