File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -231,7 +231,7 @@ async def make_store_path(
231231 result = StorePath (await MemoryStore .open (mode = mode or "w" ), path = path_normalized )
232232 elif isinstance (store_like , Path ):
233233 result = StorePath (
234- await LocalStore .open (root = store_like , mode = mode or "r" ), path = path_normalized
234+ await LocalStore .open (path = store_like , mode = mode or "r" ), path = path_normalized
235235 )
236236 elif isinstance (store_like , str ):
237237 storage_options = storage_options or {}
@@ -244,7 +244,7 @@ async def make_store_path(
244244 )
245245 else :
246246 result = StorePath (
247- await LocalStore .open (root = Path (store_like ), mode = mode or "r" ), path = path_normalized
247+ await LocalStore .open (path = Path (store_like ), mode = mode or "r" ), path = path_normalized
248248 )
249249 elif isinstance (store_like , dict ):
250250 # We deliberate only consider dict[str, Buffer] here, and not arbitrary mutable mappings.
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ async def test_make_store_path_local(
3838 store_like = store_type (str (tmpdir ))
3939 store_path = await make_store_path (store_like , path = path , mode = mode )
4040 assert isinstance (store_path .store , LocalStore )
41- assert Path (store_path .store .root ) == Path (tmpdir )
41+ assert Path (store_path .store .path ) == Path (tmpdir )
4242 assert store_path .path == normalize_path (path )
4343 assert store_path .store .mode .str == mode
4444
@@ -55,7 +55,7 @@ async def test_make_store_path_store_path(
5555 store_like = StorePath (LocalStore (str (tmpdir )), path = "root" )
5656 store_path = await make_store_path (store_like , path = path , mode = mode )
5757 assert isinstance (store_path .store , LocalStore )
58- assert Path (store_path .store .root ) == Path (tmpdir )
58+ assert Path (store_path .store .path ) == Path (tmpdir )
5959 path_normalized = normalize_path (path )
6060 assert store_path .path == (store_like / path_normalized ).path
6161
You can’t perform that action at this time.
0 commit comments