• Gregory P. Smith's avatar
    Fixes Issue #16114: The subprocess module no longer provides a · ddb351c0
    Gregory P. Smith authored
    misleading error message stating that args[0] did not exist when
    either the cwd or executable keyword arguments specified a path that
    did not exist.
    
    It now keeps track of if the child got as far as preexec and reports it if
    not back to the parent via a special "noexec" error message value in
    the error pipe so that the cwd can be blamed for a failed chdir
    instead of the exec of the executable being blamed instead.
    
    The executable is also always reported accurately when exec fails.
    
    Unittests enhanced to cover these cases.
    ddb351c0
subprocess.py 62.4 KB