Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
setuptools
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jérome Perrin
setuptools
Commits
24b1723a
Commit
24b1723a
authored
Mar 14, 2015
by
Jason R. Coombs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bypass the checking of site-packages when asserting not user install in site-packages. Fixes #360.
parent
1919a435
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
setuptools/tests/test_easy_install.py
setuptools/tests/test_easy_install.py
+10
-0
No files found.
setuptools/tests/test_easy_install.py
View file @
24b1723a
...
...
@@ -154,13 +154,23 @@ def setup_context(tmpdir):
@
pytest
.
mark
.
usefixtures
(
"setup_context"
)
class
TestUserInstallTest
:
# prevent check that site-packages is writable. easy_install
# shouldn't be writing to system site-packages during finalize
# options, but while it does, bypass the behavior.
prev_sp_write
=
mock
.
patch
(
'setuptools.command.easy_install.easy_install.check_site_dir'
,
mock
.
Mock
(),
)
# simulate setuptools installed in user site packages
@
mock
.
patch
(
'setuptools.command.easy_install.__file__'
,
site
.
USER_SITE
)
@
mock
.
patch
(
'site.ENABLE_USER_SITE'
,
True
)
@
prev_sp_write
def
test_user_install_not_implied_user_site_enabled
(
self
):
self
.
assert_not_user_site
()
@
mock
.
patch
(
'site.ENABLE_USER_SITE'
,
False
)
@
prev_sp_write
def
test_user_install_not_implied_user_site_disabled
(
self
):
self
.
assert_not_user_site
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment