[Python-checkins] bpo-41473: Skip test_gdb with gdb 9.2 to work around gdb bug (GH-21768)

Miss Islington (bot) webhook-mailer at python.org
Fri Aug 7 12:15:41 EDT 2020


https://github.com/python/cpython/commit/87bc22051fcfcf181160d06a57ac2b16ee071f8f
commit: 87bc22051fcfcf181160d06a57ac2b16ee071f8f
branch: 3.8
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2020-08-07T09:15:37-07:00
summary:

bpo-41473: Skip test_gdb with gdb 9.2 to work around gdb bug (GH-21768)


gdb 9.2 on Fedora Rawhide is not reliable, see:

* https://bugs.python.org/issue41473
* https://bugzilla.redhat.com/show_bug.cgi?id=1866884
(cherry picked from commit e27a51c11e10d5df79b3e48dc3e7bfedfad5a794)

Co-authored-by: Victor Stinner <vstinner at python.org>

files:
M Lib/test/test_gdb.py

diff --git a/Lib/test/test_gdb.py b/Lib/test/test_gdb.py
index d90ca5a51ae1b..01a48af285422 100644
--- a/Lib/test/test_gdb.py
+++ b/Lib/test/test_gdb.py
@@ -51,6 +51,11 @@ def get_gdb_version():
                             "embedding. Saw %s.%s:\n%s"
                             % (gdb_major_version, gdb_minor_version,
                                gdb_version))
+if (gdb_major_version, gdb_minor_version) >= (9, 2):
+    # gdb 9.2 on Fedora Rawhide is not reliable, see:
+    # * https://bugs.python.org/issue41473
+    # * https://bugzilla.redhat.com/show_bug.cgi?id=1866884
+    raise unittest.SkipTest("https://bugzilla.redhat.com/show_bug.cgi?id=1866884")
 
 if not sysconfig.is_python_build():
     raise unittest.SkipTest("test_gdb only works on source builds at the moment.")



More information about the Python-checkins mailing list