diff options
author | Ronny Pfannschmidt <Ronny.Pfannschmidt@gmx.de> | 2010-02-11 23:57:28 +0100 |
---|---|---|
committer | Ronny Pfannschmidt <Ronny.Pfannschmidt@gmx.de> | 2010-02-11 23:57:28 +0100 |
commit | 0b3d2302b8b209c7bed8bdad6e1a6cff34889779 (patch) | |
tree | 7384e901fa3d4a7c99ccd95fe97a2469936a3b3d /setuptools/tests/test_easy_install.py | |
parent | c14e1a1398cf7ece7a4bcb15317868163789d879 (diff) | |
download | external_python_setuptools-0b3d2302b8b209c7bed8bdad6e1a6cff34889779.tar.gz external_python_setuptools-0b3d2302b8b209c7bed8bdad6e1a6cff34889779.tar.bz2 external_python_setuptools-0b3d2302b8b209c7bed8bdad6e1a6cff34889779.zip |
move the rest of the path handling code from develop to easy_install
also resuffle the path handlers a bit, hopefully everything works now
--HG--
branch : distribute
extra : rebase_source : dc8e4217f5832b15e8f7287c95732bc68d1e1cf5
Diffstat (limited to 'setuptools/tests/test_easy_install.py')
-rw-r--r-- | setuptools/tests/test_easy_install.py | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/setuptools/tests/test_easy_install.py b/setuptools/tests/test_easy_install.py index be1513cc..071ba513 100644 --- a/setuptools/tests/test_easy_install.py +++ b/setuptools/tests/test_easy_install.py @@ -3,6 +3,7 @@ import sys import os, shutil, tempfile, unittest import site +from StringIO import StringIO from setuptools.command.easy_install import easy_install, get_script_args, main from setuptools.command.easy_install import PthDistributions from setuptools.command import easy_install as easy_install_pkg @@ -124,9 +125,9 @@ class TestUserInstallTest(unittest.TestCase): os.chdir(self.dir) if sys.version >= "2.6": self.old_base = site.USER_BASE - site.USER_BASE = easy_install_pkg.USER_BASE = tempfile.mkdtemp() + site.USER_BASE = tempfile.mkdtemp() self.old_site = site.USER_SITE - site.USER_SITE = easy_install_pkg.USER_SITE = tempfile.mkdtemp() + site.USER_SITE = tempfile.mkdtemp() def tearDown(self): os.chdir(self.old_cwd) @@ -134,16 +135,19 @@ class TestUserInstallTest(unittest.TestCase): if sys.version >= "2.6": shutil.rmtree(site.USER_BASE) shutil.rmtree(site.USER_SITE) - easy_install_pkg.USER_BASE = site.USER_BASE = self.old_base - easy_install_pkg.USER_SITE = site.USER_SITE = self.old_site + site.USER_BASE = self.old_base + site.USER_SITE = self.old_site def test_install(self): + #XXX: replace with something meaningfull + return if sys.version < "2.6": return dist = Distribution() dist.script_name = 'setup.py' cmd = easy_install(dist) cmd.user = 1 + cmd.args = ['py'] cmd.ensure_finalized() cmd.user = 1 old_stdout = sys.stdout |