diff --git a/tests/test_group.py b/tests/test_group.py index 1e4f31b5d6..80a6fec1e4 100644 --- a/tests/test_group.py +++ b/tests/test_group.py @@ -1643,12 +1643,10 @@ async def test_create_hierarchy_existing_nodes( elif impl == "async": with pytest.raises(err_cls, match=re.escape(msg)): tuple( - [ - x - async for x in create_hierarchy( - store=store, nodes={"node": new_metadata}, overwrite=False - ) - ] + x + async for x in create_hierarchy( + store=store, nodes={"node": new_metadata}, overwrite=False + ) ) else: raise ValueError(f"Invalid impl: {impl}") diff --git a/tests/test_store/test_core.py b/tests/test_store/test_core.py index bce582a746..f2f6c893c9 100644 --- a/tests/test_store/test_core.py +++ b/tests/test_store/test_core.py @@ -195,7 +195,7 @@ def test_valid() -> None: Test that path normalization works as expected """ paths = ["a", "b", "c", "d", "", "//a///b//"] - assert _normalize_paths(paths) == tuple([normalize_path(p) for p in paths]) + assert _normalize_paths(paths) == tuple(normalize_path(p) for p in paths) @staticmethod @pytest.mark.parametrize("paths", [("", "/"), ("///a", "a")])