From 937a5895ebf7aafe49f856a84bc195b338bece3d Mon Sep 17 00:00:00 2001 From: James Bourbeau Date: Thu, 21 Nov 2024 11:31:10 -0600 Subject: [PATCH] Revert temp changes --- .github/workflows/main.yaml | 2 +- fsspec/tests/test_spec.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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