mirror of
https://github.com/python/cpython.git
synced 2025-10-27 16:57:08 +00:00
When regrtest in run inside IDLE, sys.stdout and sys.stderr are not
TextIOWrapper objects and have no file descriptor associated:
sys.stderr.fileno() raises io.UnsupportedOperation.
Disable faulthandler and don't replace sys.stdout in that case.
(cherry picked from commit
|
||
|---|---|---|
| .. | ||
| __init__.py | ||
| cmdline.py | ||
| main.py | ||
| refleak.py | ||
| runtest.py | ||
| runtest_mp.py | ||
| save_env.py | ||
| setup.py | ||