STINNER Victor <victor.stin...@gmail.com> added the comment:

I proposed PR 3962 to fix a few issues in regrtest when sys.stdout and 
sys.stderr have to file descriptor.

I'm not sure that we should promote running tests with unusual sys.stdout and 
sys.stderr, since many tests fail in that case. That's why I chose to not add a 
NEWS entry to my PR.

For example, test_builtin hangs until you write something in IDLE, whereas no 
prompt is displayed. test_faulthandler fails, and much more tests. I'm not 
interested to support running the Python test suite in IDLE.

Maybe we should even detect that we are running in IDLE and fail with an 
helpful error message like :

"Running the Python test suite inside IDLE is not supported. Run the test suite 
in a terminal."

At least, write a warning in UPPERCASE if sys.stdout or sys.stderr have no file 
descriptor?

----------
nosy: +haypo, serhiy.storchaka

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue25588>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to