Skip to content

Commit

Permalink
Another
Browse files Browse the repository at this point in the history
  • Loading branch information
jrbourbeau committed Nov 21, 2024
1 parent d402ac5 commit d97e87a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions fsspec/tests/test_spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -747,11 +747,11 @@ def test_cache():


def test_cache_not_pickled(server):
# fs = fsspec.filesystem("http", cache_type="readahead")
fs = fsspec.filesystem("simplecache", target_protocol="http")
fs = fsspec.filesystem("http")
# fs = fsspec.filesystem("readahead", target_protocol="http")
filepath = server.realfile
length = 3
f = fs.open(filepath, mode="rb")
f = fs.open(filepath, mode="rb", cache_type="readahead")
assert not f.cache.cache # No cache initially
assert f.read(length=length) == data[:length]
assert f.cache.cache == data # Cache is populated
Expand Down

0 comments on commit d97e87a

Please sign in to comment.