(tempdir)
| 292 | |
| 293 | |
| 294 | def 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", [ |
nothing calls this directly
no test coverage detected