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 9d1c3ef commit bedf039
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 @@ -860,14 +860,6 @@ def test_tail(fsspecfs: Any, bucket: str, temporary_workspace: str):
with pytest.raises(FileNotFoundError):
fsspecfs.tail(non_exist_path, 3)

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

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


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

0 comments on commit bedf039

Please sign in to comment.