summaryrefslogtreecommitdiff
path: root/Lib/test/test_gdb.py
diff options
context:
space:
mode:
authorMartin Panter <vadmium+py@gmail.com>2015-12-08 21:54:42 +0000
committerMartin Panter <vadmium+py@gmail.com>2015-12-08 21:54:42 +0000
commit40e102c193e2df31130ec5181347e0ac1467b485 (patch)
treeeb866de3276594a6ccaaa527b59ee1ee6d2afe27 /Lib/test/test_gdb.py
parent6e9d2e687b78e9c43e95666c00f721803c9fcba4 (diff)
downloadcpython-git-40e102c193e2df31130ec5181347e0ac1467b485.tar.gz
Issue #25820: Remove unused assignment and redundant GDB CLI arguments
These were added in revision b71cda2f48c6.
Diffstat (limited to 'Lib/test/test_gdb.py')
-rw-r--r--Lib/test/test_gdb.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/Lib/test/test_gdb.py b/Lib/test/test_gdb.py
index 6c4a348940..16fb389e7b 100644
--- a/Lib/test/test_gdb.py
+++ b/Lib/test/test_gdb.py
@@ -89,7 +89,6 @@ if not gdbpy_version:
# 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: "
@@ -171,8 +170,7 @@ class DebuggerTests(unittest.TestCase):
# print commands
# Use "commands" to generate the arguments with which to invoke "gdb":
- args = ["gdb", "--batch", "-nx"]
- args += ['--eval-command=%s' % cmd for cmd in commands]
+ args = ['--eval-command=%s' % cmd for cmd in commands]
args += ["--args",
sys.executable]