<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/cpython-git.git/Lib/test/test_subprocess.py, branch benjamin-interp-initialize</title>
<subtitle>github.com: python/cpython.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/'/>
<entry>
<title>bpo-32270: Don't close stdin/out/err in pass_fds (GH-6242)</title>
<updated>2018-09-11T00:46:22+00:00</updated>
<author>
<name>Gregory P. Smith</name>
<email>greg@krypto.org</email>
</author>
<published>2018-09-11T00:46:22+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=ce34410b8b67f49d8275c05d51b3ead50cf97f48'/>
<id>ce34410b8b67f49d8275c05d51b3ead50cf97f48</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.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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.</pre>
</div>
</content>
</entry>
<entry>
<title>Remove AIX workaround test_subprocess (GH-8939)</title>
<updated>2018-08-26T17:29:36+00:00</updated>
<author>
<name>Michael Felt</name>
<email>aixtools@users.noreply.github.com</email>
</author>
<published>2018-08-26T17:29:36+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=89d79b1449750b14ded0149dcdd1e39247f2c65d'/>
<id>89d79b1449750b14ded0149dcdd1e39247f2c65d</id>
<content type='text'>
An old apparent AIX behavior workaround in test_subprocess's
test_undecodable_env is no longer needed.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
An old apparent AIX behavior workaround in test_subprocess's
test_undecodable_env is no longer needed.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-34044: subprocess.Popen copies startupinfo (GH-8090)</title>
<updated>2018-07-05T20:54:17+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@redhat.com</email>
</author>
<published>2018-07-05T20:54:17+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=483422f57e5d8c8bf8820fec29fc9b96bb15d4ef'/>
<id>483422f57e5d8c8bf8820fec29fc9b96bb15d4ef</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() method.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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() method.</pre>
</div>
</content>
</entry>
<entry>
<title>Revert "bpo-33671: Add support.MS_WINDOWS and support.MACOS (GH-7800)" (GH-7919)</title>
<updated>2018-06-26T00:11:06+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@redhat.com</email>
</author>
<published>2018-06-26T00:11:06+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=937ee9e745d7ff3c2010b927903c0e2a83623324'/>
<id>937ee9e745d7ff3c2010b927903c0e2a83623324</id>
<content type='text'>
This reverts commit 8fbbdf0c3107c3052659e166f73990b466eacbb0.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This reverts commit 8fbbdf0c3107c3052659e166f73990b466eacbb0.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-33671: Add support.MS_WINDOWS and support.MACOS (GH-7800)</title>
<updated>2018-06-22T17:25:44+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@redhat.com</email>
</author>
<published>2018-06-22T17:25:44+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=8fbbdf0c3107c3052659e166f73990b466eacbb0'/>
<id>8fbbdf0c3107c3052659e166f73990b466eacbb0</id>
<content type='text'>
* Add support.MS_WINDOWS: True if Python is running on Microsoft Windows.
* Add support.MACOS: True if Python is running on Apple macOS.
* Replace support.is_android with support.ANDROID
* Replace support.is_jython with support.JYTHON
* Cleanup code to initialize unix_shell
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Add support.MS_WINDOWS: True if Python is running on Microsoft Windows.
* Add support.MACOS: True if Python is running on Apple macOS.
* Replace support.is_android with support.ANDROID
* Replace support.is_jython with support.JYTHON
* Cleanup code to initialize unix_shell
</pre>
</div>
</content>
</entry>
<entry>
<title>Improve the subprocess restore_signals=True test. (GH-7414)</title>
<updated>2018-06-05T19:00:57+00:00</updated>
<author>
<name>Gregory P. Smith</name>
<email>greg@krypto.org</email>
</author>
<published>2018-06-05T19:00:57+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=5f3d04fa4e9b3c3b0e4807f8516de9365bfed467'/>
<id>5f3d04fa4e9b3c3b0e4807f8516de9365bfed467</id>
<content type='text'>
It wasn't testing functionality.  Now it is (on Linux anyways).</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
It wasn't testing functionality.  Now it is (on Linux anyways).</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-32844: Fix a subprocess misredirection of a low fd (GH5689)</title>
<updated>2018-03-26T19:49:35+00:00</updated>
<author>
<name>Alexey Izbyshev</name>
<email>izbyshev@users.noreply.github.com</email>
</author>
<published>2018-03-26T19:49:35+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=0e7144b064a19493a146af94175a087b3888c37b'/>
<id>0e7144b064a19493a146af94175a087b3888c37b</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.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-32964: Reuse a testing implementation of the path protocol in tests. (#5930)</title>
<updated>2018-03-02T09:53:51+00:00</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2018-03-02T09:53:51+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=b21d155f57d284aecf9092a9bd24258293965c2f'/>
<id>b21d155f57d284aecf9092a9bd24258293965c2f</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Revert "bpo-31961: subprocess now accepts path-like args (GH-4329)" (#5912)</title>
<updated>2018-02-27T23:03:46+00:00</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2018-02-27T23:03:46+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=be50a7b627d0aa37e08fa8e2d5568891f19903ce'/>
<id>be50a7b627d0aa37e08fa8e2d5568891f19903ce</id>
<content type='text'>
* Revert "bpo-31961: subprocess now accepts path-like args (GH-4329)"

This reverts commit dd42cb71f2cb02f3a32f016137b12a146bc0d0e2.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Revert "bpo-31961: subprocess now accepts path-like args (GH-4329)"

This reverts commit dd42cb71f2cb02f3a32f016137b12a146bc0d0e2.
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-30121: Fix test_subprocess for Windows Debug builds (GH-5758)</title>
<updated>2018-02-19T20:02:38+00:00</updated>
<author>
<name>Zachary Ware</name>
<email>zachary.ware@gmail.com</email>
</author>
<published>2018-02-19T20:02:38+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=5537646bfacec463b450871dde31cb06c44a0556'/>
<id>5537646bfacec463b450871dde31cb06c44a0556</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
