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():
226
226
import fsspec
227
227
from fsspec .implementations .memory import MemoryFileSystem
228
228
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 )
231
232
fs .store .clear ()
232
233
233
234
dir_name = "remote-bucket"
@@ -238,7 +239,7 @@ def remote_csv_directory():
238
239
assert fs .exists (dir_name ), "Remote directory was not created"
239
240
assert fs .isdir (dir_name ), "Remote path is not a directory"
240
241
241
- return f"s3 ://{ dir_name } "
242
+ return f"{ schema } ://{ dir_name } "
242
243
243
244
244
245
@pytest .fixture
Original file line number Diff line number Diff line change @@ -720,7 +720,7 @@ def test_remote_csv_directory(remote_csv_directory):
720
720
import fsspec
721
721
from fsspec .implementations .memory import MemoryFileSystem
722
722
723
- fs = fsspec .filesystem ( "s3" )
723
+ fs , _ = fsspec .url_to_fs ( remote_csv_directory )
724
724
assert isinstance (fs , MemoryFileSystem )
725
725
726
726
assert fs .exists ("remote-bucket" )
You can’t perform that action at this time.
0 commit comments