]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.11] gh-110995: Fix test_gdb check_usable_gdb() (GH-110998) (#111004)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 17 Oct 2023 18:43:46 +0000 (20:43 +0200)
committerGitHub <noreply@github.com>
Tue, 17 Oct 2023 18:43:46 +0000 (18:43 +0000)
commit73ebe2f881ac2ffb4d3d23b8693213fea53357e9
tree92b7063af51f3c02a5cc5bba0c289c612414040a
parentf58bcee53a9ef542d44c2898d743362f3f96dc53
[3.11] gh-110995: Fix test_gdb check_usable_gdb() (GH-110998) (#111004)

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]