]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gdb/testsuite: use "is" for type comparison in Python files
authorSimon Marchi <simon.marchi@efficios.com>
Wed, 29 Oct 2025 17:49:18 +0000 (13:49 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Thu, 30 Oct 2025 16:15:13 +0000 (12:15 -0400)
commit0e529fc9c7f5b2f1838dd4ded84fe06735288ff0
tree677585ce5cfaab8441e64a4ee5612b13493a6aac
parentde9f1c1bb22e1024813e523a36f458455cdcf7c7
gdb/testsuite: use "is" for type comparison in Python files

Fix flake8 warnings like:

    gdb/testsuite/gdb.python/py-unwind.py:253:20: E721 do not compare types, for exact checks use `is` / `is not`, for instance checks use `isinstance()`

Change-Id: I506c0874bba88aa418757d94168992bf4ec677f8
Approved-By: Tom Tromey <tom@tromey.com>
gdb/testsuite/gdb.python/py-missing-objfile.py
gdb/testsuite/gdb.python/py-unwind.py
gdb/testsuite/gdb.python/source2.py