Skip to content

Commit aa33415

Browse files
Replace redundant list comprehension with generator (#3040)
* Replace redundant list comprehension with generator * Partially revert There is no such thing as a "tuple comprehension": https://stackoverflow.com/questions/52285419/aggregating-an-async-generator-to-a-tuple#52285420 Fixes CI error: FAILED tests/test_group.py::test_create_hierarchy_existing_nodes[zarr2-async-array-memory] - TypeError: 'async_generator' object is not iterable
1 parent d615783 commit aa33415

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_store/test_core.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ def test_valid() -> None:
203203
Test that path normalization works as expected
204204
"""
205205
paths = ["a", "b", "c", "d", "", "//a///b//"]
206-
assert _normalize_paths(paths) == tuple([normalize_path(p) for p in paths])
206+
assert _normalize_paths(paths) == tuple(normalize_path(p) for p in paths)
207207

208208
@staticmethod
209209
@pytest.mark.parametrize("paths", [("", "/"), ("///a", "a")])

0 commit comments

Comments
 (0)