[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 error found on lgtm.com

https://lgtm.com/projects/g/python/cpython/snapshot/404ccc0aa78cd896ecb025571633a68b7292e8d4/files/Lib/os.py?sort=name=ASC=heatmap=false#xf40b8a11dc3c558c:1

--
components: Library (Lib)
messages: 316699
nosy: Mark.Shannon
priority: normal
severity: normal
stage: needs patch
status: open
title: os.spawnvpe() returns error code 127 instead of raising when env 
argument is invalid.
type: behavior
versions: Python 3.8

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com