]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
GH-98327: Reduce scope of catch_warnings() in _make_subprocess_transport (#98333)
authorKumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Mon, 17 Oct 2022 15:27:02 +0000 (20:57 +0530)
committerGitHub <noreply@github.com>
Mon, 17 Oct 2022 15:27:02 +0000 (08:27 -0700)
commit72c10d3f1a6d42b70cc4b843295361db17cc0964
tree43f981f89da42ac037b2eb936675a969ba810f6a
parent6da1a2e993c955aa69158871b8c8792cef3094c3
GH-98327: Reduce scope of catch_warnings() in _make_subprocess_transport (#98333)

Alas, warnings.catch_warnings() has global scope, not thread scope, so this is still not perfect, but it reduces the time during which warnings are ignored. Better solution welcome.
Lib/asyncio/unix_events.py
Lib/test/test_asyncio/test_subprocess.py