]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gdb/testsuite: avoid assigning lambdas in Python files
authorSimon Marchi <simon.marchi@efficios.com>
Wed, 29 Oct 2025 17:49:25 +0000 (13:49 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Thu, 30 Oct 2025 16:25:53 +0000 (12:25 -0400)
commitb58e2ff69ae7050590be0fc933aa822e41b39519
treee27da14b560e42d76694fa3685176ca9d85b23bf
parent750ef8f6e9c4d4767006782afeb75a06091904ff
gdb/testsuite: avoid assigning lambdas in Python files

Fix flake8 warnings like this one:

    gdb/testsuite/gdb.perf/template-breakpoints.py:35:13: E731 do not assign a lambda expression, use a def

I chose to inline the lambdas in the expressions, since they are simple
enough and only used once each.

Change-Id: I46fac428a95da38f5a6a87e101be4da9fa4acc31
Approved-By: Tom Tromey <tom@tromey.com>
gdb/testsuite/gdb.perf/backtrace.py
gdb/testsuite/gdb.perf/gmonster-null-lookup.py
gdb/testsuite/gdb.perf/gmonster-print-cerr.py
gdb/testsuite/gdb.perf/gmonster-ptype-string.py
gdb/testsuite/gdb.perf/gmonster-runto-main.py
gdb/testsuite/gdb.perf/gmonster-select-file.py
gdb/testsuite/gdb.perf/single-step.py
gdb/testsuite/gdb.perf/skip-command.py
gdb/testsuite/gdb.perf/solib.py
gdb/testsuite/gdb.perf/template-breakpoints.py