mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Issue #19308: fix the gdb plugin on gdbs linked with Python 3
This commit is contained in:
parent
5bef410471
commit
e50240c504
2 changed files with 68 additions and 51 deletions
|
@ -63,7 +63,7 @@ def run_gdb(*args, **env_vars):
|
|||
return out.decode('utf-8', 'replace'), err.decode('utf-8', 'replace')
|
||||
|
||||
# Verify that "gdb" was built with the embedded python support enabled:
|
||||
gdbpy_version, _ = run_gdb("--eval-command=python import sys; print sys.version_info")
|
||||
gdbpy_version, _ = run_gdb("--eval-command=python import sys; print(sys.version_info)")
|
||||
if not gdbpy_version:
|
||||
raise unittest.SkipTest("gdb not built with embedded python support")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue