Skip to content

Commit 87bc220

Browse files
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 e27a51c) Co-authored-by: Victor Stinner <[email protected]>
1 parent dc98a54 commit 87bc220

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Lib/test/test_gdb.py

+5
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,11 @@ def get_gdb_version():
5151
"embedding. Saw %s.%s:\n%s"
5252
% (gdb_major_version, gdb_minor_version,
5353
gdb_version))
54+
if (gdb_major_version, gdb_minor_version) >= (9, 2):
55+
# gdb 9.2 on Fedora Rawhide is not reliable, see:
56+
# * https://bugs.python.org/issue41473
57+
# * https://bugzilla.redhat.com/show_bug.cgi?id=1866884
58+
raise unittest.SkipTest("https://bugzilla.redhat.com/show_bug.cgi?id=1866884")
5459

5560
if not sysconfig.is_python_build():
5661
raise unittest.SkipTest("test_gdb only works on source builds at the moment.")

0 commit comments

Comments
 (0)