]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-21263: Skip test_gdb when python has been compiled with LLVM clang (GH-10318...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 4 Nov 2018 21:40:25 +0000 (13:40 -0800)
committerNed Deily <nad@python.org>
Sun, 4 Nov 2018 21:40:25 +0000 (16:40 -0500)
(cherry picked from commit 59668aa8b7f174b59304eab833c1c1181886c3c6)

Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
Lib/test/test_gdb.py
Misc/ACKS
Misc/NEWS.d/next/Tests/2018-11-04-20-17-09.bpo-21263.T3qo9r.rst [new file with mode: 0644]

index b33d007acbdf37767e4fc55bcf203aae5a207a9b..9c15fca432931f593fddd84d7ce8a9063a73c8c1 100644 (file)
@@ -5,6 +5,7 @@
 
 import locale
 import os
+import platform
 import re
 import subprocess
 import sys
@@ -54,6 +55,10 @@ if gdb_major_version < 7:
 if not sysconfig.is_python_build():
     raise unittest.SkipTest("test_gdb only works on source builds at the moment.")
 
+if 'Clang' in platform.python_compiler() and sys.platform == 'darwin':
+    raise unittest.SkipTest("test_gdb doesn't work correctly when python is"
+                            " built with LLVM clang")
+
 # Location of custom hooks file in a repository checkout.
 checkout_hook_path = os.path.join(os.path.dirname(sys.executable),
                                   'python-gdb.py')
index 94731b493c51dd0d9befb625abd703a20a4381a9..c78df75f0dcb62e261d2c2a523c52ea94b6cbb4f 100644 (file)
--- a/Misc/ACKS
+++ b/Misc/ACKS
@@ -1107,6 +1107,7 @@ Samuel Nicolary
 Jonathan Niehof
 Gustavo Niemeyer
 Oscar Nierstrasz
+Lysandros Nikolaou
 Hrvoje Nikšić
 Gregory Nofi
 Jesse Noller
diff --git a/Misc/NEWS.d/next/Tests/2018-11-04-20-17-09.bpo-21263.T3qo9r.rst b/Misc/NEWS.d/next/Tests/2018-11-04-20-17-09.bpo-21263.T3qo9r.rst
new file mode 100644 (file)
index 0000000..9c6b4ef
--- /dev/null
@@ -0,0 +1,4 @@
+After several reports that test_gdb does not work properly on macOS and
+since gdb is not shipped by default anymore, test_gdb is now skipped on
+macOS when LLVM Clang has been used to compile Python. Patch by
+Lysandros Nikolaou