Title: os.spawnvpe() returns error code 127 instead of raising when env argument is invalid.
Type: behavior Stage: patch review
Components: Library (Lib) Versions: Python 3.8
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: Mark.Shannon
Priority: normal Keywords: patch

Created on 2018-05-15 19:14 by Mark.Shannon, last changed 2018-05-16 15:59 by licht-t.

Pull Requests
URL Status Linked Edit
PR 6910 open licht-t, 2018-05-16 15:59
Messages (1)
msg316699 - (view) Author: Mark Shannon (Mark.Shannon) * (Python committer) Date: 2018-05-15 19:14
>>> os.spawnvpe(os.P_WAIT, "python2", ["python2", "-c", "print 'Hello World!'"], {})
Hello World!
>>> os.spawnvpe(os.P_WAIT, "python2", ["python2", "-c", "print 'Hello World!'"], None)

The latter should raise an exception of some sort.

From error found on
Date User Action Args
2018-05-16 15:59:05licht-tsetkeywords: + patch
stage: needs patch -> patch review
pull_requests: + pull_request6578
2018-05-15 19:14:21Mark.Shannoncreate