[Python-checkins] cpython (merge 3.5 -> default): Issue #26127: Merge test_gdb fix from 3.5

martin.panter python-checkins at python.org
Sat Jan 16 00:21:40 EST 2016


https://hg.python.org/cpython/rev/620a37dbc686
changeset:   99921:620a37dbc686
parent:      99917:fe360700d1ae
parent:      99920:c87cc05af8e7
user:        Martin Panter <vadmium+py at gmail.com>
date:        Sat Jan 16 05:20:57 2016 +0000
summary:
  Issue #26127: Merge test_gdb fix from 3.5

files:
  Lib/test/test_gdb.py |  3 +++
  1 files changed, 3 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
@@ -75,6 +75,9 @@
     if (gdb_major_version, gdb_minor_version) >= (7, 4):
         base_cmd += ('-iex', 'add-auto-load-safe-path ' + checkout_hook_path)
     proc = subprocess.Popen(base_cmd + args,
+                            # Redirect stdin to prevent GDB from messing with
+                            # the terminal settings
+                            stdin=subprocess.PIPE,
                             stdout=subprocess.PIPE,
                             stderr=subprocess.PIPE,
                             env=env)

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


More information about the Python-checkins mailing list