From 906c87fdefadebad3f522e36157471b5036fa0ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniele=20Trifir=C3=B2?= Date: Wed, 1 Jun 2022 19:07:17 +0200 Subject: [PATCH] tests: replace unecessary `map()` call in test_live caught by flake8 --- tests/func/test_live.py | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/tests/func/test_live.py b/tests/func/test_live.py index 236b1b08c..6763431f6 100644 --- a/tests/func/test_live.py +++ b/tests/func/test_live.py @@ -184,14 +184,10 @@ def checkpoints_metric(show_results, metric_file, metric_name): tmp.pop("workspace") tmp = first(tmp.values()) tmp.pop("baseline") - return list( - map( - lambda exp: exp["data"]["metrics"][metric_file]["data"][ - metric_name - ], - list(tmp.values()), - ) - ) + return [ + exp["data"]["metrics"][metric_file]["data"][metric_name] + for exp in tmp.values() + ] @pytest.mark.parametrize("typ", ("live", "live_no_cache"))