[New-bugs-announce] [issue17758] test_site fails when the user does not have a home directory

Matthias Klose report at bugs.python.org
Tue Apr 16 15:51:19 CEST 2013


New submission from Matthias Klose:

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 <module>
    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'

----------
components: Tests
messages: 187078
nosy: doko
priority: normal
severity: normal
stage: needs patch
status: open
title: test_site fails when the user does not have a home directory
type: enhancement
versions: Python 3.3, Python 3.4

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17758>
_______________________________________


More information about the New-bugs-announce mailing list