mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Do not run test_gdb when gdb embeds Python 2. (GH-31956)
This commit is contained in:
parent
15df8f8d89
commit
7aeb06f78e
1 changed files with 3 additions and 0 deletions
|
@ -117,6 +117,9 @@ gdbpy_version, _ = run_gdb("--eval-command=python import sys; print(sys.version_
|
|||
if not gdbpy_version:
|
||||
raise unittest.SkipTest("gdb not built with embedded python support")
|
||||
|
||||
if "major=2" in gdbpy_version:
|
||||
raise unittest.SkipTest("gdb built with Python 2")
|
||||
|
||||
# Verify that "gdb" can load our custom hooks, as OS security settings may
|
||||
# disallow this without a customized .gdbinit.
|
||||
_, gdbpy_errors = run_gdb('--args', sys.executable)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue