Skip to content

Commit 0950540

Browse files
committed
More
1 parent d97e87a commit 0950540

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

.github/workflows/main.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
shell: bash -l {0}
4141
run: |
4242
pip install -e .[test_full]
43-
pytest -v
43+
pytest -v fsspec/tests/test_spec.py
4444
4545
win:
4646
name: pytest-win

fsspec/tests/test_spec.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -747,11 +747,15 @@ def test_cache():
747747

748748

749749
def test_cache_not_pickled(server):
750-
fs = fsspec.filesystem("http")
750+
fs = fsspec.filesystem(
751+
"http",
752+
cache_type="readahead",
753+
headers={"give_length": "true", "head_ok": "true"},
754+
)
751755
# fs = fsspec.filesystem("readahead", target_protocol="http")
752756
filepath = server.realfile
753757
length = 3
754-
f = fs.open(filepath, mode="rb", cache_type="readahead")
758+
f = fs.open(filepath, mode="rb")
755759
assert not f.cache.cache # No cache initially
756760
assert f.read(length=length) == data[:length]
757761
assert f.cache.cache == data # Cache is populated

0 commit comments

Comments
 (0)