@@ -267,7 +267,7 @@ def test_blockcache_workflow(ftp_writable, tmp_path, force_save_pickle):
267267 assert f .read (5 ) == b"test\n "
268268
269269
270- @pytest .mark .parametrize ("impl" , ["filecache" , "blockcache" ])
270+ @pytest .mark .parametrize ("impl" , ["filecache" , "blockcache" , "cached" ])
271271def test_workflow (ftp_writable , impl ):
272272 host , port , user , pw = ftp_writable
273273 fs = FTPFileSystem (host , port , user , pw )
@@ -295,7 +295,7 @@ def test_workflow(ftp_writable, impl):
295295 ) # new value, because we overwrote the cached location
296296
297297
298- @pytest .mark .parametrize ("impl" , ["simplecache" , "blockcache" ])
298+ @pytest .mark .parametrize ("impl" , ["simplecache" , "blockcache" , "cached" ])
299299def test_glob (ftp_writable , impl ):
300300 host , port , user , pw = ftp_writable
301301 fs = FTPFileSystem (host , port , user , pw )
@@ -622,7 +622,7 @@ def open_raise(*_, **__):
622622 assert "Cache save failed due to interpreter shutdown" in caplog .text
623623
624624
625- @pytest .mark .parametrize ("impl" , ["filecache" , "simplecache" , "blockcache" ])
625+ @pytest .mark .parametrize ("impl" , ["filecache" , "simplecache" , "blockcache" , "cached" ])
626626def test_local_filecache_creates_dir_if_needed (impl ):
627627 import tempfile
628628
@@ -875,7 +875,7 @@ def test_filecache_with_checks():
875875 assert fs .cat (f1 ) == data * 2 # changed, since origin changed
876876
877877
878- @pytest .mark .parametrize ("impl" , ["filecache" , "simplecache" , "blockcache" ])
878+ @pytest .mark .parametrize ("impl" , ["filecache" , "simplecache" , "blockcache" , "cached" ])
879879@pytest .mark .parametrize ("fs" , ["local" , "multi" ], indirect = ["fs" ])
880880def test_filecache_takes_fs_instance (impl , fs ):
881881 origin = tempfile .mkdtemp ()
@@ -889,7 +889,7 @@ def test_filecache_takes_fs_instance(impl, fs):
889889 assert fs2 .cat (f1 ) == data
890890
891891
892- @pytest .mark .parametrize ("impl" , ["filecache" , "simplecache" , "blockcache" ])
892+ @pytest .mark .parametrize ("impl" , ["filecache" , "simplecache" , "blockcache" , "cached" ])
893893@pytest .mark .parametrize ("fs" , ["local" , "multi" ], indirect = ["fs" ])
894894def test_filecache_serialization (impl , fs ):
895895 fs1 = fsspec .filesystem (impl , fs = fs )
@@ -1031,7 +1031,9 @@ def test_multi_cache(protocol):
10311031 assert f .read () == b"hello"
10321032
10331033
1034- @pytest .mark .parametrize ("protocol" , ["simplecache" , "filecache" , "blockcache" ])
1034+ @pytest .mark .parametrize (
1035+ "protocol" , ["simplecache" , "filecache" , "blockcache" , "cached" ]
1036+ )
10351037def test_multi_cat (protocol , ftp_writable ):
10361038 host , port , user , pw = ftp_writable
10371039 fs = FTPFileSystem (host , port , user , pw )
@@ -1064,7 +1066,9 @@ def test_multi_cache_chain(protocol):
10641066 assert files [0 ].read () == b"hello"
10651067
10661068
1067- @pytest .mark .parametrize ("protocol" , ["blockcache" , "simplecache" , "filecache" ])
1069+ @pytest .mark .parametrize (
1070+ "protocol" , ["blockcache" , "cached" , "simplecache" , "filecache" ]
1071+ )
10681072def test_strip (protocol ):
10691073 fs = fsspec .filesystem (protocol , target_protocol = "memory" )
10701074 url1 = "memory://afile"
@@ -1235,9 +1239,11 @@ def test_cache_dir_auto_deleted(temp_cache, tmpdir):
12351239 assert local .exists (cache_dir )
12361240
12371241
1238- @pytest .mark .parametrize ("protocol" , ["filecache" , "blockcache" , "simplecache" ])
1242+ @pytest .mark .parametrize (
1243+ "protocol" , ["filecache" , "blockcache" , "cached" , "simplecache" ]
1244+ )
12391245def test_cache_size (tmpdir , protocol ):
1240- if win and protocol == "blockcache" :
1246+ if win and protocol in { "blockcache" , "cached" } :
12411247 pytest .skip ("Windows file locking affects blockcache size tests" )
12421248
12431249 source = os .path .join (tmpdir , "source" )
0 commit comments