[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).
stage: needs patch
title: subprocess test_leaking_fds_on_error fails if last directory in path is not accessible
versions: Python 2.7, Python 3.1, Python 3.2, Python 3.3
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list