commit | ec9bea4a3766bd815148a27f61eb24e7dd459ac7 | [log] [tgz] |
---|---|---|
author | Victor Stinner <vstinner@python.org> | Wed Apr 29 17:11:48 2020 +0200 |
committer | GitHub <noreply@github.com> | Wed Apr 29 17:11:48 2020 +0200 |
tree | 808f462e186e6c7ff286186bac813af8488325c7 | |
parent | 9a8c1315c3041fdb85d091bb8dc92f0d9dcb1529 [diff] [blame] |
bpo-40436: Fix code parsing gdb version (GH-19792) test_gdb and test.pythoninfo now check gdb command exit code.
diff --git a/Lib/test/pythoninfo.py b/Lib/test/pythoninfo.py index cc230dd..cc0bbc5 100644 --- a/Lib/test/pythoninfo.py +++ b/Lib/test/pythoninfo.py
@@ -376,6 +376,9 @@ 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