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

Function test_delete_dir

python/pyarrow/tests/test_fs.py:852–863  ·  view source on GitHub ↗
(fs, pathfn)

Source from the content-addressed store, hash-verified

850
851
852def test_delete_dir(fs, pathfn):
853 skip_fsspec_s3fs(fs)
854
855 d = pathfn('directory/')
856 nd = pathfn('directory/nested/')
857
858 fs.create_dir(nd)
859 fs.delete_dir(d)
860 with pytest.raises(pa.ArrowIOError):
861 fs.delete_dir(nd)
862 with pytest.raises(pa.ArrowIOError):
863 fs.delete_dir(d)
864
865
866def test_delete_dir_with_explicit_subdir(fs, pathfn):

Callers

nothing calls this directly

Calls 4

skip_fsspec_s3fsFunction · 0.85
pathfnFunction · 0.85
create_dirMethod · 0.45
delete_dirMethod · 0.45

Tested by

no test coverage detected