]> granicus.if.org Git - python/commit
bpo-25588: Fix regrtest when run inside IDLE (#3962)
authorVictor Stinner <victor.stinner@gmail.com>
Fri, 13 Oct 2017 19:59:12 +0000 (12:59 -0700)
committerGitHub <noreply@github.com>
Fri, 13 Oct 2017 19:59:12 +0000 (12:59 -0700)
commitccef823939d4ef602f2d8d13d0bfec29eda597a5
tree652187dafdf3f4e16a1d9c865f0b10f20f84dfae
parent7f580970836b0f6bc9c5db868d95bea81a3e1558
bpo-25588: Fix regrtest when run inside IDLE (#3962)

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.
Lib/test/libregrtest/setup.py