Skip to content

Commit

Permalink
Remove open dir defensive inspection
Browse files Browse the repository at this point in the history
  • Loading branch information
yanghua committed Oct 17, 2024
1 parent a63b7ea commit 9d1c3ef
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions tosfs/tests/test_fsspec_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -846,14 +846,6 @@ def test_fs_read_block(fsspecfs: Any, bucket: str, temporary_workspace: str):
with pytest.raises(FileNotFoundError):
fsspecfs.read_block(non_exist_path, 0, 3)

dir_name = random_str()
path = f"{bucket}/{temporary_workspace}/{dir_name}"
fsspecfs.mkdir(path)
assert fsspecfs.exists(path)

with pytest.raises(IsADirectoryError):
fsspecfs.read_block(path, 0, 3)


def test_tail(fsspecfs: Any, bucket: str, temporary_workspace: str):
file_name = random_str()
Expand Down

0 comments on commit 9d1c3ef

Please sign in to comment.