Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Tom de Vries <tdevries@suse.de>
To: gdb-patches@sourceware.org
Subject: [pushed 2/2] [gdb] Fix flake8 warning in gdb.python/py-inf-exited-at-exit.py
Date: Mon, 15 Jun 2026 10:29:29 +0200	[thread overview]
Message-ID: <20260615082929.1693282-2-tdevries@suse.de> (raw)
In-Reply-To: <20260615082929.1693282-1-tdevries@suse.de>

With current trunk we have:
...
$ pre-commit run flake8 --all-files
flake8..................................................................Failed
- hook id: flake8
- exit code: 1

gdb.python/py-inf-exited-at-exit.py:22:1: F821 undefined name 'gdb'
...

Fix this by adding the missing import.
---
 gdb/testsuite/gdb.python/py-inf-exited-at-exit.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/gdb/testsuite/gdb.python/py-inf-exited-at-exit.py b/gdb/testsuite/gdb.python/py-inf-exited-at-exit.py
index 9a5440b083f..4a73e562bc4 100644
--- a/gdb/testsuite/gdb.python/py-inf-exited-at-exit.py
+++ b/gdb/testsuite/gdb.python/py-inf-exited-at-exit.py
@@ -13,6 +13,8 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
+import gdb
+
 
 def exit_event_handler(event):
     inf = event.inferior
-- 
2.51.0


      reply	other threads:[~2026-06-15  8:30 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-15  8:29 [pushed 1/2] [gdb] Fix file mode of gdb/microblaze-linux-nat.c Tom de Vries
2026-06-15  8:29 ` Tom de Vries [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260615082929.1693282-2-tdevries@suse.de \
    --to=tdevries@suse.de \
    --cc=gdb-patches@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox