8000 Do not run test_gdb when gdb embeds Python 2. (GH-31956) · python/cpython@7aeb06f · GitHub
[go: up one dir, main page]

Skip to content

Commit 7aeb06f

Browse files
authored
Do not run test_gdb when gdb embeds Python 2. (GH-31956)
1 parent 15df8f8 commit 7aeb06f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Lib/test/test_gdb.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,9 @@ def run_gdb(*args, **env_vars):
117117
if not gdbpy_version:
118118
raise unittest.SkipTest("gdb not built with embedded python support")
119119

120+
if "major=2" in gdbpy_version:
121+
raise unittest.SkipTest("gdb built with Python 2")
122+
120123
# Verify that "gdb" can load our custom hooks, as OS security settings may
121124
# disallow this without a customized .gdbinit.
122125
_, gdbpy_errors = run_gdb('--args', sys.executable)

0 commit comments

Comments
 (0)
0