We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d402ac5 commit d97e87aCopy full SHA for d97e87a
fsspec/tests/test_spec.py
@@ -747,11 +747,11 @@ def test_cache():
747
748
749
def test_cache_not_pickled(server):
750
- # fs = fsspec.filesystem("http", cache_type="readahead")
751
- fs = fsspec.filesystem("simplecache", target_protocol="http")
+ fs = fsspec.filesystem("http")
+ # fs = fsspec.filesystem("readahead", target_protocol="http")
752
filepath = server.realfile
753
length = 3
754
- f = fs.open(filepath, mode="rb")
+ f = fs.open(filepath, mode="rb", cache_type="readahead")
755
assert not f.cache.cache # No cache initially
756
assert f.read(length=length) == data[:length]
757
assert f.cache.cache == data # Cache is populated
0 commit comments