Undo supposed fix for Issue #15798 until I understand why this is · pythoncapi/cpython@54532c9 · GitHub
Skip to content

Commit 54532c9

Browse files
committed
Undo supposed fix for Issue python#15798 until I understand why this is
causing test_multiprocessing_forkserver and test_multiprocessing_spawn failures on head (3.4).
2 parents 1c27e3c + 361e30c commit 54532c9

4 files changed

Lines changed: 6 additions & 29 deletions

File tree

Lib/subprocess.py

Lines changed: 1 addition & 4 deletions

Lib/test/test_subprocess.py

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1559,27 +1559,6 @@ def test_close_fds_0_1_2(self):
15591559
# all standard fds closed.
15601560
self.check_close_std_fds([0, 1, 2])
15611561

1562-
def test_small_errpipe_write_fd(self):
1563-
"""Issue #15798: Popen should work when stdio fds are available."""
1564-
new_stdin = os.dup(0)
1565-
new_stdout = os.dup(1)
1566-
try:
1567-
os.close(0)
1568-
os.close(1)
1569-
1570-
# Side test: if errpipe_write fails to have its CLOEXEC
1571-
# flag set this should cause the parent to think the exec
1572-
# failed. Extremely unlikely: everyone supports CLOEXEC.
1573-
subprocess.Popen([
1574-
sys.executable, "-c",
1575-
"print('AssertionError:0:CLOEXEC failure.')"]).wait()
1576-
finally:
1577-
# Restore original stdin and stdout
1578-
os.dup2(new_stdin, 0)
1579-
os.dup2(new_stdout, 1)
1580-
os.close(new_stdin)
1581-
os.close(new_stdout)
1582-
15831562
def test_remapping_std_fds(self):
15841563
# open up some temporary files
15851564
temps = [mkstemp() for i in range(3)]

Misc/NEWS

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@ Core and Builtins
1818
Library
1919
-------
2020

21-
- Issue #15798: Fixed subprocess.Popen() to no longer fail if file
22-
descriptor 0, 1 or 2 is closed.
23-
2421
- Issue #17897: Optimized unpickle prefetching.
2522

2623
- Issue #3693: Make the error message more helpful when the array.array()

Modules/_posixsubprocess.c

Lines changed: 5 additions & 1 deletion

0 commit comments

Comments
 (0)