<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Lib/test/test_subprocess.py, branch v3.7.2</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/test/test_subprocess.py?h=v3.7.2</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/test/test_subprocess.py?h=v3.7.2'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2018-09-11T04:36:20Z</updated>
<entry>
<title>bpo-32270: Don't close stdin/out/err in pass_fds (GH-6242) (GH-9148)</title>
<updated>2018-09-11T04:36:20Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2018-09-11T04:36:20Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=9c4a63fc17efea31ad41f90d28825be37469e0e2'/>
<id>urn:sha1:9c4a63fc17efea31ad41f90d28825be37469e0e2</id>
<content type='text'>
When subprocess.Popen() stdin= stdout= or stderr= handles are specified
and appear in pass_fds=, don't close the original fds after dup'ing them.

This implementation and unittest primarily came from @izbyshev (see the PR)

See also https://github.com/izbyshev/cpython/commit/b89b52f28490b69142d5c061604b3a3989cec66c

This also removes the old manual p2cread, c2pwrite, and errwrite closing logic
as inheritable flags and _close_open_fds takes care of that properly today without special treatment.

This code is within child_exec() where it is the only thread so there is no
race condition between the dup and _Py_set_inheritable_async_safe call.
(cherry picked from commit ce34410b8b67f49d8275c05d51b3ead50cf97f48)

Co-authored-by: Gregory P. Smith &lt;greg@krypto.org&gt; [Google]</content>
</entry>
<entry>
<title>Remove AIX workaround test_subprocess (GH-8939)</title>
<updated>2018-08-27T00:32:48Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2018-08-27T00:32:48Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=55b8c4bff8fad63474fdb39dd7af462991013b57'/>
<id>urn:sha1:55b8c4bff8fad63474fdb39dd7af462991013b57</id>
<content type='text'>
An old apparent AIX behavior workaround in test_subprocess's
test_undecodable_env is no longer needed.
(cherry picked from commit 89d79b1449750b14ded0149dcdd1e39247f2c65d)

Co-authored-by: Michael Felt &lt;aixtools@users.noreply.github.com&gt;</content>
</entry>
<entry>
<title>bpo-34044: subprocess.Popen copies startupinfo (GH-8090) (GH-8121)</title>
<updated>2018-07-05T21:15:28Z</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@redhat.com</email>
</author>
<published>2018-07-05T21:15:28Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=29be3bd3c9aed0190e60096a603120cacda82375'/>
<id>urn:sha1:29be3bd3c9aed0190e60096a603120cacda82375</id>
<content type='text'>
subprocess.Popen now copies the startupinfo argument to leave it
unchanged: it will modify the copy, so that the same STARTUPINFO
object can be used multiple times.

Add subprocess.STARTUPINFO._copy() private method.

Python 3.7 backport from master makes the copy() private: renamed to
_copy().

(cherry picked from commit 483422f57e5d8c8bf8820fec29fc9b96bb15d4ef)</content>
</entry>
<entry>
<title>Improve the subprocess restore_signals=True test. (GH-7414) (GH-7437)</title>
<updated>2018-06-07T17:31:41Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2018-06-07T17:31:41Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=e4b2bdfdcff7ba6a8676494a295434a4a6f5917a'/>
<id>urn:sha1:e4b2bdfdcff7ba6a8676494a295434a4a6f5917a</id>
<content type='text'>
It wasn't testing functionality.  Now it is (on Linux anyways).
(cherry picked from commit 5f3d04fa4e9b3c3b0e4807f8516de9365bfed467)

Co-authored-by: Gregory P. Smith &lt;greg@krypto.org&gt;</content>
</entry>
<entry>
<title>bpo-32844: Fix a subprocess misredirection of a low fd (GH5689)</title>
<updated>2018-03-26T20:14:09Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2018-03-26T20:14:09Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=05455637f3ba9bacd459700f4feab783e5967d69'/>
<id>urn:sha1:05455637f3ba9bacd459700f4feab783e5967d69</id>
<content type='text'>
bpo-32844: subprocess: Fix a potential misredirection of a low fd to stderr.

When redirecting, subprocess attempts to achieve the following state:
each fd to be redirected to is less than or equal to the fd
it is redirected from, which is necessary because redirection
occurs in the ascending order of destination descriptors.
It fails to do so in a couple of corner cases,
for example, if 1 is redirected to 2 and 0 is closed in the parent.
(cherry picked from commit 0e7144b064a19493a146af94175a087b3888c37b)

Co-authored-by: Alexey Izbyshev &lt;izbyshev@users.noreply.github.com&gt;</content>
</entry>
<entry>
<title>bpo-32964: Reuse a testing implementation of the path protocol in tests. (GH-5930)</title>
<updated>2018-03-02T10:17:51Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2018-03-02T10:17:51Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=a13b65422a1078104e9f53ad41945ea380a80798'/>
<id>urn:sha1:a13b65422a1078104e9f53ad41945ea380a80798</id>
<content type='text'>
(cherry picked from commit b21d155f57d284aecf9092a9bd24258293965c2f)

Co-authored-by: Serhiy Storchaka &lt;storchaka@gmail.com&gt;</content>
</entry>
<entry>
<title>Revert "bpo-31961: subprocess now accepts path-like args (GH-4329)" (GH-5912) (GH-5931)</title>
<updated>2018-02-27T23:30:30Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2018-02-27T23:30:30Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=b7dcae358e9d5a3ac9dafec9f6b64e9a66843ad8'/>
<id>urn:sha1:b7dcae358e9d5a3ac9dafec9f6b64e9a66843ad8</id>
<content type='text'>
* Revert "bpo-31961: subprocess now accepts path-like args (GH-4329)"

This reverts commit dd42cb71f2cb02f3a32f016137b12a146bc0d0e2.
(cherry picked from commit be50a7b627d0aa37e08fa8e2d5568891f19903ce)

Co-authored-by: Serhiy Storchaka &lt;storchaka@gmail.com&gt;</content>
</entry>
<entry>
<title>bpo-30121: Fix test_subprocess for Windows Debug builds (GH-5758)</title>
<updated>2018-02-19T21:00:22Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2018-02-19T21:00:22Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=622a824802771fc5aa133ae92101bc8303360294'/>
<id>urn:sha1:622a824802771fc5aa133ae92101bc8303360294</id>
<content type='text'>
(cherry picked from commit 5537646bfacec463b450871dde31cb06c44a0556)

Co-authored-by: Zachary Ware &lt;zachary.ware@gmail.com&gt;</content>
</entry>
<entry>
<title>bpo-31961: subprocess now accepts path-like args (GH-4329)</title>
<updated>2018-01-30T07:27:28Z</updated>
<author>
<name>Anders Lorentsen</name>
<email>Phaqui@gmail.com</email>
</author>
<published>2018-01-30T07:27:28Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=dd42cb71f2cb02f3a32f016137b12a146bc0d0e2'/>
<id>urn:sha1:dd42cb71f2cb02f3a32f016137b12a146bc0d0e2</id>
<content type='text'>
Allow os.PathLike args in subprocess APIs.</content>
</entry>
<entry>
<title>bpo-32102 Add "capture_output=True" to subprocess.run (GH-5149)</title>
<updated>2018-01-30T06:40:39Z</updated>
<author>
<name>Bo Bayles</name>
<email>bbayles@gmail.com</email>
</author>
<published>2018-01-30T06:40:39Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=ce0f33d04528fcafc673a8707871f8430d8f7ce8'/>
<id>urn:sha1:ce0f33d04528fcafc673a8707871f8430d8f7ce8</id>
<content type='text'>
Add "capture_output=True" option to subprocess.run, this is equivalent to
setting stdout=PIPE, stderr=PIPE but is much more readable.</content>
</entry>
</feed>
