8000 Partially revert · zarr-developers/zarr-python@9341f6e · GitHub
[go: up one dir, main page]

Skip to content

Commit 9341f6e

Browse files
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 1d87d49 commit 9341f6e

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

tests/test_group.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1641,10 +1641,12 @@ async def test_create_hierarchy_existing_nodes(
16411641
elif impl == "async":
16421642
with pytest.raises(err_cls, match=re.escape(msg)):
16431643
tuple(
1644-
x
1645-
async for x in create_hierarchy(
1646-
store=store, nodes={"node": new_metadata}, overwrite=False
1647-
)
1644+
[
1645+
x
1646+
async for x in create_hierarchy(
1647+
store=store, nodes={"node": new_metadata}, overwrite=False
1648+
)
1649+
]
16481650
)
16491651
else:
16501652
raise ValueError(f"Invalid impl: {impl}")

0 commit comments

Comments
 (0)
0