[Python-checkins] cpython (2.7): This check can still fail on RHEL6

nick.coghlan python-checkins at python.org
Sun Sep 22 11:36:27 CEST 2013


http://hg.python.org/cpython/rev/565ced5bd487
changeset:   85771:565ced5bd487
branch:      2.7
parent:      85759:f27af2243e2a
user:        Nick Coghlan <ncoghlan at gmail.com>
date:        Sun Sep 22 19:36:09 2013 +1000
summary:
  This check can still fail on RHEL6

files:
  Lib/test/test_gdb.py |  6 +++---
  1 files changed, 3 insertions(+), 3 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
@@ -53,13 +53,13 @@
 if not gdbpy_version:
     raise unittest.SkipTest("gdb not built with embedded python support")
 
-# Verify that "gdb" can load our custom hooks.  In theory this should never
-# fail, but we don't handle the case of the hooks file not existing if the
-# tests are run from an installed Python (we'll produce failures in that case).
+# Verify that "gdb" can load our custom hooks, as OS security settings may
+# disallow this without a customised .gdbinit.
 cmd = ['--args', sys.executable]
 _, gdbpy_errors = run_gdb('--args', sys.executable)
 if "auto-loading has been declined" in gdbpy_errors:
     msg = "gdb security settings prevent use of custom hooks: "
+    raise unittest.SkipTest(msg + gdbpy_errors.rstrip())
 
 def python_is_optimized():
     cflags = sysconfig.get_config_vars()['PY_CFLAGS']

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


More information about the Python-checkins mailing list