summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_gdb.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2016-09-06 17:06:31 (GMT)
committerBenjamin Peterson <benjamin@python.org>2016-09-06 17:06:31 (GMT)
commit499378f0879ad625b47f0873616d5efd19b80901 (patch)
tree53075b7ca1883a24f9c622720b992662a076b242 /Lib/test/test_gdb.py
parentf0039d1f8dea8c19a3718fa9ae7840e2290d91f6 (diff)
downloadcpython-499378f0879ad625b47f0873616d5efd19b80901.zip
cpython-499378f0879ad625b47f0873616d5efd19b80901.tar.gz
cpython-499378f0879ad625b47f0873616d5efd19b80901.tar.bz2
suppress stderr output when checking gdb (closes #27969)
Diffstat (limited to 'Lib/test/test_gdb.py')
-rw-r--r--Lib/test/test_gdb.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_gdb.py b/Lib/test/test_gdb.py
index fe98530..8d3d772 100644
--- a/Lib/test/test_gdb.py
+++ b/Lib/test/test_gdb.py
@@ -24,6 +24,7 @@ def get_gdb_version():
try:
proc = subprocess.Popen(["gdb", "-nx", "--version"],
stdout=subprocess.PIPE,
+ stderr=subprocess.PIPE,
universal_newlines=True)
version = proc.communicate()[0]
except OSError: