diff options
author | Nick Coghlan <ncoghlan@gmail.com> | 2013-09-22 09:36:09 (GMT) |
---|---|---|
committer | Nick Coghlan <ncoghlan@gmail.com> | 2013-09-22 09:36:09 (GMT) |
commit | 254a377222a21a5c6cce6fa077889c9b591d9431 (patch) | |
tree | 31d8129bdbc9e929693ff319420f236c41cbacaf /Lib/test | |
parent | 60bf0e4daa4a498d53c37dba93cf03dd0c1924e8 (diff) | |
download | cpython-254a377222a21a5c6cce6fa077889c9b591d9431.zip cpython-254a377222a21a5c6cce6fa077889c9b591d9431.tar.gz cpython-254a377222a21a5c6cce6fa077889c9b591d9431.tar.bz2 |
This check can still fail on RHEL6
Diffstat (limited to 'Lib/test')
-rw-r--r-- | 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 index 5302b5a..d1e6567 100644 --- a/Lib/test/test_gdb.py +++ b/Lib/test/test_gdb.py @@ -53,13 +53,13 @@ gdbpy_version, _ = run_gdb("--eval-command=python import sys; print sys.version_ 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'] |