classification
Title: test.pythoninfo prints a stack trace and exits with 1 when the compiler does not exist
Type: behavior Stage:
Components: Library (Lib) Versions: Python 3.8
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: xdegaye
Priority: normal Keywords:

Created on 2019-02-09 21:06 by xdegaye, last changed 2019-02-09 21:06 by xdegaye.

Messages (1)
msg335139 - (view) Author: Xavier de Gaye (xdegaye) * (Python triager) Date: 2019-02-09 21:06
The call to subprocess.Popen() in collect_cc() of Lib/test/pythoninfo.py raises an exception when the compiler that has been used to build python is not present on the host running python. In that case pythoninfo prints a stack trace and exits with an error.

On the other side if the execution of the compiler to get its version fails, the error is silently ignored. It seems the exception should be ignored as well.
History
Date User Action Args
2019-02-09 21:06:05xdegayecreate