diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 18a6fb41e..653eb8084 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -40,7 +40,7 @@ jobs: shell: bash -l {0} run: | pip install -e .[test_full] - pytest -v fsspec/tests/test_spec.py + pytest -v win: name: pytest-win diff --git a/fsspec/tests/test_spec.py b/fsspec/tests/test_spec.py index 798e162b2..3a6d5c433 100644 --- a/fsspec/tests/test_spec.py +++ b/fsspec/tests/test_spec.py @@ -752,10 +752,10 @@ def test_cache_not_pickled(server): cache_type="readahead", headers={"give_length": "true", "head_ok": "true"}, ) - # fs = fsspec.filesystem("readahead", target_protocol="http") filepath = server.realfile length = 3 f = fs.open(filepath, mode="rb") + assert isinstance(f, AbstractBufferedFile) assert not f.cache.cache # No cache initially assert f.read(length=length) == data[:length] assert f.cache.cache == data # Cache is populated