From a666df2b658081eef490ca0820307a1ef3299255 Mon Sep 17 00:00:00 2001 From: Adrian Reber Date: Wed, 17 Jun 2026 12:38:47 +0000 Subject: [PATCH] test: remove unnecessary lambda wrapper in list_tests Pass show_test_info directly to map() instead of wrapping it in a redundant lambda. Assisted-by: Claude Code (claude-opus-4-6) Signed-off-by: Adrian Reber --- test/zdtm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/zdtm.py b/test/zdtm.py index 63806d708..ffc5a699e 100755 --- a/test/zdtm.py +++ b/test/zdtm.py @@ -2606,7 +2606,7 @@ def list_tests(opts): tlist = all_tests(opts) if opts['info']: print(sti_fmt % ('Name', 'Flavors', 'Flags')) - tlist = map(lambda x: show_test_info(x), tlist) + tlist = map(show_test_info, tlist) print('\n'.join(tlist))