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

Function test_fspath

python/pyarrow/tests/parquet/test_basic.py:294–307  ·  view source on GitHub ↗
(tempdir)

Source from the content-addressed store, hash-verified

292
293
294def test_fspath(tempdir):
295 # ARROW-12472 support __fspath__ objects without using str()
296 path = tempdir / "test.parquet"
297 table = pa.table({"a": [1, 2, 3]})
298 _write_table(table, path)
299
300 fs_protocol_obj = util.FSProtocolClass(path)
301
302 result = _read_table(fs_protocol_obj)
303 assert result.equals(table)
304
305 # combined with non-local filesystem raises
306 with pytest.raises(TypeError):
307 _read_table(fs_protocol_obj, filesystem=fs.FileSystem())
308
309
310@pytest.mark.parametrize("filesystem", [

Callers

nothing calls this directly

Calls 3

_write_tableFunction · 0.90
_read_tableFunction · 0.90
equalsMethod · 0.80

Tested by

no test coverage detected