cpython icon indicating copy to clipboard operation
cpython copied to clipboard

test_ioctl is skipped because of setsid()

Open vstinner opened this issue 1 year ago • 0 comments

Python test runner "regrtest" uses process groups to be able to kill child processes of worker processes. Tests are run in subprocesses to run them in parallel and to catch bugs.

Problem: if setsid() is called (after fork), test_ioctl fails to open /dev/tty.

I propose to not use setsid() when running tests using TTY, such as test_ioctl.

Linked PRs

  • gh-119275

vstinner avatar May 20 '24 22:05 vstinner