bpo-35721: Close socket pair if Popen in _UnixSubprocessTransport fails (GH-11553)



This slightly expands an existing test case `test_popen_error` to trigger a `ResourceWarning` and fixes it.


https://bugs.python.org/issue35721
4 files changed