[issue19384] test_py_compile fails with OSError on FreeBSD for root user

2013-10-25 Thread Christian Heimes
Christian Heimes added the comment: The test also fails for root user on Linux: $ sudo ./python Lib/test/test_py_compile.py .F. == FAIL: test_exceptions_propagate (__main__.PyCompileTests) --

[issue19384] test_py_compile fails with OSError on FreeBSD for root user

2013-10-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset e7b97822110f by Christian Heimes in branch 'default': Issue 19384: Fix test_py_compile for root user, patch by Claudiu Popa. http://hg.python.org/cpython/rev/e7b97822110f -- nosy: +python-dev ___ Python t

[issue19384] test_py_compile fails with OSError on FreeBSD for root user

2013-10-24 Thread Claudiu.Popa
Claudiu.Popa added the comment: Yes, you can create files in a read-only directory if you are root, that's why os.chmod(directory, stat.S_IREAD is redundant there. -- ___ Python tracker ___

[issue19384] test_py_compile fails with OSError on FreeBSD for root user

2013-10-24 Thread Christian Heimes
Christian Heimes added the comment: The patch looks good to me. I'm curious, is a root user on FreeBSD allowed to create files inside a read-only directory? -- nosy: +christian.heimes stage: -> patch review type: -> behavior ___ Python tracker

[issue19384] test_py_compile fails with OSError on FreeBSD for root user

2013-10-24 Thread Claudiu.Popa
New submission from Claudiu.Popa: The actual error: == FAIL: test_exceptions_propagate (test.test_py_compile.PyCompileTests) -- Traceback (most recent call last