Issue 17758: test_site fails when the user does not have a home directory (original) (raw)

seen when running the testsuite as user nobody, with test_site fails when the user's home directory does not exist, and is not creatable (e.g. /nonexistent).

FAILED (failures=3) test test_pydoc failed Re-running test 'test_site' in verbose mode test test_site crashed -- Traceback (most recent call last): File "/usr/lib/python3.3/test/regrtest.py", line 1213, in runtest_inner the_package = import(abstest, globals(), locals(), []) File "/usr/lib/python3.3/test/test_site.py", line 29, in os.makedirs(site.USER_SITE) File "/usr/lib/python3.3/os.py", line 258, in makedirs makedirs(head, mode, exist_ok) File "/usr/lib/python3.3/os.py", line 258, in makedirs makedirs(head, mode, exist_ok) File "/usr/lib/python3.3/os.py", line 258, in makedirs makedirs(head, mode, exist_ok) File "/usr/lib/python3.3/os.py", line 258, in makedirs makedirs(head, mode, exist_ok) File "/usr/lib/python3.3/os.py", line 269, in makedirs mkdir(name, mode) PermissionError: [Errno 13] Permission denied: '/nonexistent'