mirror of
https://github.com/python/cpython.git
synced 2025-12-11 11:31:05 +00:00
bpo-21263: Skip test_gdb when python has been compiled with LLVM clang (GH-10318)
This commit is contained in:
parent
c03bf0ae79
commit
59668aa8b7
3 changed files with 10 additions and 0 deletions
|
|
@ -5,6 +5,7 @@
|
||||||
|
|
||||||
import locale
|
import locale
|
||||||
import os
|
import os
|
||||||
|
import platform
|
||||||
import re
|
import re
|
||||||
import subprocess
|
import subprocess
|
||||||
import sys
|
import sys
|
||||||
|
|
@ -48,6 +49,10 @@ if gdb_major_version < 7:
|
||||||
if not sysconfig.is_python_build():
|
if not sysconfig.is_python_build():
|
||||||
raise unittest.SkipTest("test_gdb only works on source builds at the moment.")
|
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.
|
# Location of custom hooks file in a repository checkout.
|
||||||
checkout_hook_path = os.path.join(os.path.dirname(sys.executable),
|
checkout_hook_path = os.path.join(os.path.dirname(sys.executable),
|
||||||
'python-gdb.py')
|
'python-gdb.py')
|
||||||
|
|
|
||||||
|
|
@ -1147,6 +1147,7 @@ Samuel Nicolary
|
||||||
Jonathan Niehof
|
Jonathan Niehof
|
||||||
Gustavo Niemeyer
|
Gustavo Niemeyer
|
||||||
Oscar Nierstrasz
|
Oscar Nierstrasz
|
||||||
|
Lysandros Nikolaou
|
||||||
Hrvoje Nikšić
|
Hrvoje Nikšić
|
||||||
Gregory Nofi
|
Gregory Nofi
|
||||||
Jesse Noller
|
Jesse Noller
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
Loading…
Add table
Add a link
Reference in a new issue