Skip to content

Commit eb2d0c0

Browse files
committed
lint
1 parent bf8c07d commit eb2d0c0

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

src/zarr/testing/store_concurrency.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@ async def test_concurrency_limit_enforced(self, store_kwargs: dict[str, Any]) ->
8484
if not issubclass(self.store_cls, ConcurrencyLimiter):
8585
pytest.skip("Store does not support concurrency limits")
8686

87-
limit = 3
88-
store = self.store_cls(**{**store_kwargs, "concurrency_limit": limit}) # type: ignore[unreachable]
87+
limit = 3 # type: ignore[unreachable]
88+
store = self.store_cls(**{**store_kwargs, "concurrency_limit": limit})
8989
await store._ensure_open()
9090

9191
sem = store._semaphore
@@ -94,7 +94,7 @@ async def test_concurrency_limit_enforced(self, store_kwargs: dict[str, Any]) ->
9494
# Exhaust all slots
9595
for _ in range(limit):
9696
await sem.acquire()
97-
assert sem._value == 0 # type: ignore[attr-defined]
97+
assert sem._value == 0
9898

9999
# A store operation should block because no slots are available
100100
buf = self.buffer_cls.from_bytes(b"x")

tests/test_store/test_local.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,4 +204,3 @@ def test_atomic_write_exclusive_preexisting(tmp_path: pathlib.Path) -> None:
204204
f.write(b"abc")
205205
assert path.read_bytes() == b"xyz"
206206
assert list(path.parent.iterdir()) == [path] # no temp files
207-

0 commit comments

Comments
 (0)