Skip to content

Commit 906c87f

Browse files
dtrifiroefiop
authored andcommitted
tests: replace unecessary map() call in test_live
caught by flake8
1 parent 52f02d2 commit 906c87f

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

tests/func/test_live.py

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -184,14 +184,10 @@ def checkpoints_metric(show_results, metric_file, metric_name):
184184
tmp.pop("workspace")
185185
tmp = first(tmp.values())
186186
tmp.pop("baseline")
187-
return list(
188-
map(
189-
lambda exp: exp["data"]["metrics"][metric_file]["data"][
190-
metric_name
191-
],
192-
list(tmp.values()),
193-
)
194-
)
187+
return [
188+
exp["data"]["metrics"][metric_file]["data"][metric_name]
189+
for exp in tmp.values()
190+
]
195191

196192

197193
@pytest.mark.parametrize("typ", ("live", "live_no_cache"))

0 commit comments

Comments
 (0)