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
bb7a25ab
Commit
bb7a25ab
authored
Jan 01, 2015
by
Jason R. Coombs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Also save the ENABLE_USER_SITE setting in the user_override.
parent
0b799319
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
1 deletion
+12
-1
setuptools/tests/contexts.py
setuptools/tests/contexts.py
+10
-0
setuptools/tests/fixtures.py
setuptools/tests/fixtures.py
+2
-1
No files found.
setuptools/tests/contexts.py
View file @
bb7a25ab
...
...
@@ -3,6 +3,7 @@ import os
import
shutil
import
sys
import
contextlib
import
site
from
..compat
import
StringIO
...
...
@@ -57,3 +58,12 @@ def quiet():
new_stderr
.
seek
(
0
)
sys
.
stdout
=
old_stdout
sys
.
stderr
=
old_stderr
@
contextlib
.
contextmanager
def
save_user_site_setting
():
saved
=
site
.
ENABLE_USER_SITE
try
:
yield
saved
finally
:
site
.
ENABLE_USER_SITE
=
saved
setuptools/tests/fixtures.py
View file @
bb7a25ab
...
...
@@ -13,4 +13,5 @@ def user_override():
with
mock
.
patch
(
'site.USER_BASE'
,
user_base
):
with
contexts
.
tempdir
()
as
user_site
:
with
mock
.
patch
(
'site.USER_SITE'
,
user_site
):
yield
with
contexts
.
save_user_site_setting
():
yield
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