File tree 3 files changed +3
-8
lines changed
3 files changed +3
-8
lines changed Original file line number Diff line number Diff line change 6
6
import os
7
7
import threading
8
8
from concurrent .futures import ThreadPoolExecutor , wait
9
- from typing import TYPE_CHECKING , Any , TypeVar
9
+ from typing import TYPE_CHECKING , TypeVar
10
10
11
11
from typing_extensions import ParamSpec
12
12
Original file line number Diff line number Diff line change 4
4
import contextlib
5
5
import pickle
6
6
from collections import defaultdict
7
- from collections .abc import Iterable
8
- from typing import TYPE_CHECKING , Any , TypedDict
7
+ from typing import TYPE_CHECKING , TypedDict
9
8
10
9
from zarr .abc .store import (
11
10
ByteRequest ,
14
13
Store ,
15
14
SuffixByteRequest ,
16
15
)
17
- from zarr .core .buffer .core import BufferPrototype
18
16
from zarr .core .config import config
19
17
20
18
if TYPE_CHECKING :
Original file line number Diff line number Diff line change @@ -1519,7 +1519,6 @@ def test_create_nodes_concurrency_limit(store: MemoryStore) -> None:
1519
1519
# if create_nodes is sensitive to IO latency,
1520
1520
# this should take (num_groups * get_latency) seconds
1521
1521
# otherwise, it should take only marginally more than get_latency seconds
1522
-
1523
1522
with zarr_config .set ({"async.concurrency" : 1 }):
1524
1523
start = time .time ()
1525
1524
_ = tuple (sync_group .create_nodes (store = latency_store , nodes = groups ))
@@ -2024,9 +2023,7 @@ def test_group_members_concurrency_limit(store: MemoryStore) -> None:
2024
2023
# if .members is sensitive to IO latency,
2025
2024
# this should take (num_groups * get_latency) seconds
2026
2025
# otherwise, it should take only marginally more than get_latency seconds
2027
- from zarr .core .config import config
2028
-
2029
- with config .set ({"async.concurrency" : 1 }):
2026
+ with zarr_config .set ({"async.concurrency" : 1 }):
2030
2027
start = time .time ()
2031
2028
_ = group_read .members ()
2032
2029
elapsed = time .time () - start
You can’t perform that action at this time.
0 commit comments