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

Function test_non_path_like_input_raises

python/pyarrow/tests/test_fs.py:709–717  ·  view source on GitHub ↗
(fs)

Source from the content-addressed store, hash-verified

707
708
709def test_non_path_like_input_raises(fs):
710 class Path:
711 pass
712
713 invalid_paths = [1, 1.1, Path(), tuple(), {}, [], lambda: 1,
714 pathlib.Path()]
715 for path in invalid_paths:
716 with pytest.raises(TypeError):
717 fs.create_dir(path)
718
719
720def test_get_file_info(fs, pathfn):

Callers

nothing calls this directly

Calls 3

PathClass · 0.70
PathMethod · 0.45
create_dirMethod · 0.45

Tested by

no test coverage detected