summaryrefslogtreecommitdiff
path: root/setuptools/tests/test_easy_install.py
diff options
context:
space:
mode:
authorRonny Pfannschmidt <Ronny.Pfannschmidt@gmx.de>2010-05-21 19:22:43 +0200
committerRonny Pfannschmidt <Ronny.Pfannschmidt@gmx.de>2010-05-21 19:22:43 +0200
commit9456da484efba996b190310fa39dca7db2c8ea81 (patch)
tree0d77d336d3a1175c217f4168ae9a747282610536 /setuptools/tests/test_easy_install.py
parent0c8f3ad99a9b8d4a11e32ecf841df428a1cc7fa2 (diff)
downloadpython-setuptools-git-9456da484efba996b190310fa39dca7db2c8ea81.tar.gz
make HAS_USER_SITE depend on site.ENABLE_USER_SITE
--HG-- branch : distribute extra : rebase_source : e7fb6337b41ea732acd41bab92a57471f3632777
Diffstat (limited to 'setuptools/tests/test_easy_install.py')
-rw-r--r--setuptools/tests/test_easy_install.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/setuptools/tests/test_easy_install.py b/setuptools/tests/test_easy_install.py
index 4791e03c..8caaeb87 100644
--- a/setuptools/tests/test_easy_install.py
+++ b/setuptools/tests/test_easy_install.py
@@ -158,7 +158,7 @@ class TestUserInstallTest(unittest.TestCase):
self.old_cwd = os.getcwd()
os.chdir(self.dir)
if sys.version >= "2.6":
- self.old_enable = site.ENABLE_USER_SITE
+ self.old_has_site = easy_install_pkg.HAS_USER_SITE
self.old_file = easy_install_pkg.__file__
self.old_base = site.USER_BASE
site.USER_BASE = tempfile.mkdtemp()
@@ -174,11 +174,11 @@ class TestUserInstallTest(unittest.TestCase):
shutil.rmtree(site.USER_SITE)
site.USER_BASE = self.old_base
site.USER_SITE = self.old_site
- site.ENABLE_USER_SITE = self.old_enable
+ easy_install_pkg.HAS_USER_SITE = self.old_has_site
easy_install_pkg.__file__ = self.old_file
def test_user_install_implied(self):
- site.ENABLE_USER_SITE = True # disabled sometimes
+ easy_install_pkg.HAS_USER_SITE = True # disabled sometimes
#XXX: replace with something meaningfull
if sys.version < "2.6":
return #SKIP
@@ -195,7 +195,7 @@ class TestUserInstallTest(unittest.TestCase):
_LOG.info('this should not break')
def test_user_install_not_implied_without_usersite_enabled(self):
- site.ENABLE_USER_SITE = False # disabled sometimes
+ easy_install_pkg.HAS_USER_SITE = False # usually enabled
#XXX: replace with something meaningfull
if sys.version < "2.6":
return #SKIP