]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-110995: Fix test_gdb check_usable_gdb() (#110998)
authorVictor Stinner <vstinner@python.org>
Tue, 17 Oct 2023 18:19:14 +0000 (20:19 +0200)
committerGitHub <noreply@github.com>
Tue, 17 Oct 2023 18:19:14 +0000 (20:19 +0200)
commit920b3dfacad615c7bb9bd9a35774469f8809b453
tree00db5924a107dee4fa1cfa3e9fcf10996f15f89c
parent2dcc57008be7012b8249208282837ed4d9c3c3e2
gh-110995: Fix test_gdb check_usable_gdb() (#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.
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]