File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change @@ -747,11 +747,15 @@ def test_cache():
747747
748748
749749def 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
You can’t perform that action at this time.
0 commit comments