Commit ff8ea364 authored by Victor Stinner's avatar Victor Stinner

Merge 3.5 (test_site)

parents 6d54a334 7668e13c
......@@ -28,8 +28,13 @@ import site
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)
try:
os.makedirs(site.USER_SITE)
site.addsitedir(site.USER_SITE)
except PermissionError as exc:
raise unittest.SkipTest('unable to create user site directory (%r): %s'
% (site.USER_SITE, exc))
class HelperFunctionsTests(unittest.TestCase):
"""Tests for helper functions.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment