New submission from Antoine Pitrou <[EMAIL PROTECTED]>: test_shutil fails with the following error under some AIX 5.3 machine:
====================================================================== FAIL: test_on_error (__main__.TestShutil) ---------------------------------------------------------------------- Traceback (most recent call last): File "Lib/test/test_shutil.py", line 35, in test_on_error shutil.rmtree(TESTFN, onerror=self.check_args_to_onerror) File "/qakplus/qa_test/SandBoxes/Antoine/Python-2.5.2/Lib/shutil.py", line 161, in rmtree onerror(os.listdir, path, sys.exc_info()) File "Lib/test/test_shutil.py", line 49, in check_args_to_onerror self.assertEqual(func, os.remove) AssertionError: <built-in function listdir> != <built-in function remove> The problem seems to be that the system is stricter with permissions (please note I don't know AIX at all, and the filesystems are unknown brands of network filesystems :-)), and @test in that test case is set to chmod 0400: $ chmod 400 @test $ ./python -c "import os; print os.listdir('@test')" Traceback (most recent call last): File "<string>", line 1, in <module> OSError: [Errno 13] Permission denied: '@test' $ chmod 100 @test $ ./python -c "import os; print os.listdir('@test')" Traceback (most recent call last): File "<string>", line 1, in <module> OSError: [Errno 13] Permission denied: '@test' $ chmod 500 @test $ ./python -c "import os; print os.listdir('@test')" ['a'] The error was witnessed with Python 2.5.2 but the test case doesn't seem to have changed in trunk so it should be the same there too. ---------- components: Tests messages: 67771 nosy: pitrou severity: normal status: open title: test_shutil fails under AIX versions: Python 2.5, Python 2.6 _______________________________________ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3053> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com