Closed
Description
We noticed that some tests of Python's test suite related to file descriptors in subprocesses started failing with python-build-standalone 3.12.8.
The following tests pass with 3.12.7 but fail with 3.12.8 (and still fail with 3.12.10) - tested on Ubuntu 20.04 and 24.04:
python -m test -v -m test_pass_fds_redirected test_subprocess.py
python -m test -v -m test_no_* test_cmd_line.py
python -m test -v -m test_close_file test_posix.py
(The tests succeed with a deadsnakes Python 3.12.10.)
All tests have in common that they start a subprocess and check that some file descriptors, which are open in the main process, are closed in the subprocess - and fail because they are not.
Does anyone have an idea why this could be an issue in python-build-standalone now, why it was not an issue before and if/how it could be fixed?