[issue33525] os.spawnvpe() returns error code 127 instead of raising when env argument is invalid.

2018-05-16 Thread Licht Takeuchi
Change by Licht Takeuchi : -- keywords: +patch pull_requests: +6578 stage: needs patch -> patch review ___ Python tracker ___ ___ Pyt

[issue33525] os.spawnvpe() returns error code 127 instead of raising when env argument is invalid.

2018-05-15 Thread Mark Shannon
New submission from Mark Shannon : >>> os.spawnvpe(os.P_WAIT, "python2", ["python2", "-c", "print 'Hello >>> World!'"], {}) Hello World! 0 >>> os.spawnvpe(os.P_WAIT, "python2", ["python2", "-c", "print 'Hello >>> World!'"], None) 127 The latter should raise an exception of some sort. >From e