From d833c778182cc0a049900619fa4b6cf12393b403 Mon Sep 17 00:00:00 2001 From: Zachary Ware Date: Wed, 24 Aug 2016 11:14:34 -0500 Subject: Issue #12660: Backport 84bbb8d2d237 --- Lib/test/test_gdb.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Lib/test/test_gdb.py b/Lib/test/test_gdb.py index f157eae..fe98530 100644 --- a/Lib/test/test_gdb.py +++ b/Lib/test/test_gdb.py @@ -7,6 +7,7 @@ import os import re import subprocess import sys +import sysconfig import unittest import sysconfig @@ -77,6 +78,9 @@ def run_gdb(*args, **env_vars): ).communicate() return out, err +if not sysconfig.is_python_build(): + raise unittest.SkipTest("test_gdb only works on source builds at the moment.") + # Verify that "gdb" was built with the embedded python support enabled: gdbpy_version, _ = run_gdb("--eval-command=python import sys; print(sys.version_info)") if not gdbpy_version: -- cgit v0.12