[Python-checkins] cpython (2.7): Issue #12660: Backport 84bbb8d2d237

zach.ware python-checkins at python.org
Wed Aug 24 12:30:00 EDT 2016


https://hg.python.org/cpython/rev/ef13efb89afe
changeset:   102889:ef13efb89afe
branch:      2.7
user:        Zachary Ware <zachary.ware at gmail.com>
date:        Wed Aug 24 11:14:34 2016 -0500
summary:
  Issue #12660: Backport 84bbb8d2d237

files:
  Lib/test/test_gdb.py |  4 ++++
  1 files changed, 4 insertions(+), 0 deletions(-)


diff --git a/Lib/test/test_gdb.py b/Lib/test/test_gdb.py
--- a/Lib/test/test_gdb.py
+++ b/Lib/test/test_gdb.py
@@ -7,6 +7,7 @@
 import re
 import subprocess
 import sys
+import sysconfig
 import unittest
 import sysconfig
 
@@ -77,6 +78,9 @@
         ).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:

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list