[issue16730] _fill_cache in _bootstrap.py crashes without directory execute permissions

2013-01-11 Thread Brett Cannon
Brett Cannon added the comment: Tests added for both the file and unreadable cases and the appropriate exceptions now caught. Thanks to everyone for helping with this! -- resolution: -> fixed stage: test needed -> committed/rejected status: open -> closed versions: +Python 3.4 ___

[issue16730] _fill_cache in _bootstrap.py crashes without directory execute permissions

2013-01-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset 159967aa24a5 by Brett Cannon in branch '3.3': Issue #16730: Don't raise an exception in http://hg.python.org/cpython/rev/159967aa24a5 New changeset b94f308e9b47 by Brett Cannon in branch 'default': Merge from 3.3 for fix for issue #16730 http://hg.p

[issue16730] _fill_cache in _bootstrap.py crashes without directory execute permissions

2013-01-08 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue16730] _fill_cache in _bootstrap.py crashes without directory execute permissions

2013-01-03 Thread David Pritchard
David Pritchard added the comment: Here's an example where Python 3.3.0 crashes, but where the patched code works. I have only been able to trigger the bug when PYTHONPATH is set (even if to an empty value). (1) create a directory (2) chmod a-rw+x on that directory (3) export PYTHONPATH="" (4

[issue16730] _fill_cache in _bootstrap.py crashes without directory execute permissions

2013-01-03 Thread Christian Heimes
Christian Heimes added the comment: NotADirectoryError is missing from the list of exception. The error can occur when the directory is removed and replaced by an ordinary file. -- nosy: +christian.heimes ___ Python tracker

[issue16730] _fill_cache in _bootstrap.py crashes without directory execute permissions

2013-01-02 Thread Meador Inge
Changes by Meador Inge : -- nosy: +meador.inge ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue16730] _fill_cache in _bootstrap.py crashes without directory execute permissions

2012-12-19 Thread Brett Cannon
Changes by Brett Cannon : -- stage: -> test needed type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue16730] _fill_cache in _bootstrap.py crashes without directory execute permissions

2012-12-19 Thread Brett Cannon
Brett Cannon added the comment: If Antoine can't think of any then I think there aren't any more. This does need a test, though. -- ___ Python tracker ___ __

[issue16730] _fill_cache in _bootstrap.py crashes without directory execute permissions

2012-12-19 Thread Eric Snow
Eric Snow added the comment: Patch looks good to me. Are there any other exceptions that might be included here? -- nosy: +brett.cannon, eric.snow ___ Python tracker ___ __

[issue16730] _fill_cache in _bootstrap.py crashes without directory execute permissions

2012-12-19 Thread Stefan Krah
Changes by Stefan Krah : -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.or

[issue16730] _fill_cache in _bootstrap.py crashes without directory execute permissions

2012-12-19 Thread David Pritchard
David Pritchard added the comment: Sorry, in the main text of my message, "write permissions" should say directory execute permissions (permission to list contents of a directory) -- ___ Python tracker ___

[issue16730] _fill_cache in _bootstrap.py crashes without directory execute permissions

2012-12-19 Thread David Pritchard
New submission from David Pritchard: In importlib/_bootstrap.py, there is a function _fill_cache which crashes when you try to run Python in any environment that is so restricted that write permissions are not allowed. You get a trace like: Traceback (most recent call last): In line: [th