[Python-checkins] Do not run test_gdb when gdb embeds Python 2. (GH-31956)

methane webhook-mailer at python.org
Thu Mar 17 05:01:06 EDT 2022


https://github.com/python/cpython/commit/7aeb06f78ee4abba64ca2c5c7a848fd2616da6fb
commit: 7aeb06f78ee4abba64ca2c5c7a848fd2616da6fb
branch: main
author: Inada Naoki <songofacandy at gmail.com>
committer: methane <songofacandy at gmail.com>
date: 2022-03-17T18:00:56+09:00
summary:

Do not run test_gdb when gdb embeds Python 2. (GH-31956)

files:
M Lib/test/test_gdb.py

diff --git a/Lib/test/test_gdb.py b/Lib/test/test_gdb.py
index 344fd3dd3f7fc..0f39b8f45714a 100644
--- a/Lib/test/test_gdb.py
+++ b/Lib/test/test_gdb.py
@@ -117,6 +117,9 @@ def run_gdb(*args, **env_vars):
 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)



More information about the Python-checkins mailing list