]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-41473: Skip test_gdb with gdb 9.2 to work around gdb bug (GH-21768)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 7 Aug 2020 16:15:37 +0000 (09:15 -0700)
committerGitHub <noreply@github.com>
Fri, 7 Aug 2020 16:15:37 +0000 (09:15 -0700)
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@python.org>
Lib/test/test_gdb.py

index d90ca5a51ae1be1d77e372f64ec9bb3fa753014f..01a48af2854222eea7b549e3f15e898145953344 100644 (file)
@@ -51,6 +51,11 @@ if gdb_major_version < 7:
                             "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.")