[New-bugs-announce] [issue11490] subprocess test_leaking_fds_on_error fails if last directory in path is not accessible

R. David Murray report at bugs.python.org
Mon Mar 14 02:49:22 CET 2011


New submission from R. David Murray <rdmurray at bitdance.com>:

test_subprocess was failing for me on my laptop, and my laptop only.  With some guidance from haypo on using strace, I tracked the problem down to the fact that the last directory in my path is a directory to which I don't have permission.  So the error subprocess was getting from trying to access the non-existent file was "permission denied" (errno 13) instead of not found (errno 2).

It is possible this is an error in subprocess as well, since the shell, for example, returns command not found in that case.  But I don't think that it is, since I think the errno is being returned by the exec call.  So, I think the test just needs to be changed to ignore errno 13 as well (by name, of course).

----------
components: Tests
keywords: easy
messages: 130784
nosy: r.david.murray
priority: low
severity: normal
stage: needs patch
status: open
title: subprocess test_leaking_fds_on_error fails if last directory in path is not accessible
type: behavior
versions: Python 2.7, Python 3.1, Python 3.2, Python 3.3

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11490>
_______________________________________


More information about the New-bugs-announce mailing list