Skip to content

Commit 8ac5270

Browse files
lucmosLuca Moschella
authored andcommitted
Fix test_isdir to avoid (failing) folder access in prefix
1 parent 180462e commit 8ac5270

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fsspec/implementations/tests/test_prefix.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def test_isdir():
113113
fs = PrefixFileSystem(prefix=".", filesystem=fsspec.filesystem("file"))
114114
with filetexts(files, mode="b"):
115115
for f in files.keys():
116-
assert fs.isdir(os.path.dirname(os.path.abspath(f)))
116+
assert fs.isfile(f)
117117
assert not fs.isdir(f)
118118
assert not fs.isdir("not-a-dir")
119119

0 commit comments

Comments
 (0)