mirror of
https://github.com/python/cpython.git
synced 2025-07-14 23:05:17 +00:00
bpo-40436: Fix code parsing gdb version (GH-19792)
test_gdb and test.pythoninfo now check gdb command exit code.
This commit is contained in:
parent
9a8c1315c3
commit
ec9bea4a37
3 changed files with 12 additions and 2 deletions
|
@ -376,6 +376,9 @@ def collect_gdb(info_add):
|
|||
stderr=subprocess.PIPE,
|
||||
universal_newlines=True)
|
||||
version = proc.communicate()[0]
|
||||
if proc.returncode:
|
||||
# ignore gdb failure: test_gdb will log the error
|
||||
return
|
||||
except OSError:
|
||||
return
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue