mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Merge 3.5 (test_site)
This commit is contained in:
commit
3719779765
1 changed files with 7 additions and 2 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue