mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
suppress stderr output when checking gdb (closes #27969)
This commit is contained in:
parent
c5c83d6b7d
commit
cbef66d711
1 changed files with 1 additions and 0 deletions
|
|
@ -25,6 +25,7 @@ def get_gdb_version():
|
||||||
try:
|
try:
|
||||||
proc = subprocess.Popen(["gdb", "-nx", "--version"],
|
proc = subprocess.Popen(["gdb", "-nx", "--version"],
|
||||||
stdout=subprocess.PIPE,
|
stdout=subprocess.PIPE,
|
||||||
|
stderr=subprocess.PIPE,
|
||||||
universal_newlines=True)
|
universal_newlines=True)
|
||||||
with proc:
|
with proc:
|
||||||
version = proc.communicate()[0]
|
version = proc.communicate()[0]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue