Skip to content

Commit c32e32c

Browse files
Redundant list comprehension
1 parent 9e8b50a commit c32e32c

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

tests/test_group.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1643,12 +1643,10 @@ async def test_create_hierarchy_existing_nodes(
16431643
elif impl == "async":
16441644
with pytest.raises(err_cls, match=re.escape(msg)):
16451645
tuple(
1646-
[
1647-
x
1648-
async for x in create_hierarchy(
1649-
store=store, nodes={"node": new_metadata}, overwrite=False
1650-
)
1651-
]
1646+
x
1647+
async for x in create_hierarchy(
1648+
store=store, nodes={"node": new_metadata}, overwrite=False
1649+
)
16521650
)
16531651
else:
16541652
raise ValueError(f"Invalid impl: {impl}")

tests/test_store/test_core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ def test_valid() -> None:
195195
Test that path normalization works as expected
196196
"""
197197
paths = ["a", "b", "c", "d", "", "//a///b//"]
198-
assert _normalize_paths(paths) == tuple([normalize_path(p) for p in paths])
198+
assert _normalize_paths(paths) == tuple(normalize_path(p) for p in paths)
199199

200200
@staticmethod
201201
@pytest.mark.parametrize("paths", [("", "/"), ("///a", "a")])

0 commit comments

Comments
 (0)