File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -226,8 +226,9 @@ def remote_csv_directory():
226226 import fsspec
227227 from fsspec .implementations .memory import MemoryFileSystem
228228
229- fsspec .register_implementation ("s3" , MemoryFileSystem )
230- fs = fsspec .filesystem ("s3" )
229+ schema = f"remote-{ uuid .uuid4 ()} "
230+ fsspec .register_implementation (schema , MemoryFileSystem )
231+ fs = fsspec .filesystem (schema )
231232 fs .store .clear ()
232233
233234 dir_name = "remote-bucket"
@@ -238,7 +239,7 @@ def remote_csv_directory():
238239 assert fs .exists (dir_name ), "Remote directory was not created"
239240 assert fs .isdir (dir_name ), "Remote path is not a directory"
240241
241- return f"s3 ://{ dir_name } "
242+ return f"{ schema } ://{ dir_name } "
242243
243244
244245@pytest .fixture
Original file line number Diff line number Diff line change @@ -720,7 +720,7 @@ def test_remote_csv_directory(remote_csv_directory):
720720 import fsspec
721721 from fsspec .implementations .memory import MemoryFileSystem
722722
723- fs = fsspec .filesystem ( "s3" )
723+ fs , _ = fsspec .url_to_fs ( remote_csv_directory )
724724 assert isinstance (fs , MemoryFileSystem )
725725
726726 assert fs .exists ("remote-bucket" )
You can’t perform that action at this time.
0 commit comments