]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-110995: Fix test_gdb check_usable_gdb() (GH-110998) (#111003)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 17 Oct 2023 18:45:55 +0000 (20:45 +0200)
committerGitHub <noreply@github.com>
Tue, 17 Oct 2023 18:45:55 +0000 (18:45 +0000)
commitf0c2390a1f89541dabe8b81bb8be0348635e030a
tree4e362928d332b7924b0d3aae384457bb07f515ff
parentc1e5343928b4e52cc91251fc8680ec3acc31e7a8
[3.12] gh-110995: Fix test_gdb check_usable_gdb() (GH-110998) (#111003)

gh-110995: Fix test_gdb check_usable_gdb() (GH-110998)

Fix detection of gdb built without Python scripting support.

* check_usable_gdb() doesn't check gdb exit code when calling
  run_gdb().
* Use shutil.which() to get the path to the gdb program.
(cherry picked from commit 920b3dfacad615c7bb9bd9a35774469f8809b453)

Co-authored-by: Victor Stinner <vstinner@python.org>
Lib/test/test_gdb/util.py
Misc/NEWS.d/next/Tests/2023-10-17-17-54-36.gh-issue-110995.Fx8KRD.rst [new file with mode: 0644]