[issue7283] test_site failure when .local/lib/pythonX.Y/site-packages hasn't been created yet
Martin Panter
report at bugs.python.org
Sat Dec 12 21:37:20 EST 2015
Martin Panter added the comment:
I can’t imagine why the buildbot is failing either.
The directory is created and added to sys.path when test_site is imported:
if site.ENABLE_USER_SITE and not os.path.isdir(site.USER_SITE):
# need to add user site directory for tests
os.makedirs(site.USER_SITE)
site.addsitedir(site.USER_SITE)
Maybe it should be changed to skip test_s_option() if the directory is missing; I dunno. Another option might be to create it just for the test, and then remove it, but that risks interfering with concurrent tests.
----------
nosy: +martin.panter
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7283>
_______________________________________
More information about the Python-bugs-list
mailing list