aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/tests/test_easy_install.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2015-03-06 15:51:33 -0500
committerJason R. Coombs <jaraco@jaraco.com>2015-03-06 15:51:33 -0500
commitdc5ad278255437f54f3033e5c526d6f2d1d1f2e5 (patch)
tree25f4512e1d1c764c7e7fa3dee8215477805692f5 /setuptools/tests/test_easy_install.py
parent55f0838ddfdd301f6f69369f94a3b476b5591b71 (diff)
downloadexternal_python_setuptools-dc5ad278255437f54f3033e5c526d6f2d1d1f2e5.tar.gz
external_python_setuptools-dc5ad278255437f54f3033e5c526d6f2d1d1f2e5.tar.bz2
external_python_setuptools-dc5ad278255437f54f3033e5c526d6f2d1d1f2e5.zip
Functions now mirror each other.
Diffstat (limited to 'setuptools/tests/test_easy_install.py')
-rw-r--r--setuptools/tests/test_easy_install.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/setuptools/tests/test_easy_install.py b/setuptools/tests/test_easy_install.py
index 2f7b27c5..ec5d5faa 100644
--- a/setuptools/tests/test_easy_install.py
+++ b/setuptools/tests/test_easy_install.py
@@ -155,7 +155,7 @@ def setup_context(tmpdir):
class TestUserInstallTest:
@mock.patch('setuptools.command.easy_install.__file__', None)
- def test_user_install_not_implied(self):
+ def test_user_install_not_implied_user_site_enabled(self):
# simulate setuptools installed in user site packages
easy_install_pkg.__file__ = site.USER_SITE
site.ENABLE_USER_SITE = True
@@ -168,9 +168,11 @@ class TestUserInstallTest:
cmd.ensure_finalized()
assert not cmd.user, 'user should not be implied'
- def test_user_install_not_implied_without_usersite_enabled(self):
- site.ENABLE_USER_SITE = False # usually enabled
- #XXX: replace with something meaningfull
+ def test_user_install_not_implied_user_site_disabled(self):
+ # ensure user-site not enabled
+ site.ENABLE_USER_SITE = False
+
+ # create a finalized easy_install command
dist = Distribution()
dist.script_name = 'setup.py'
cmd = ei.easy_install(dist)