aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_distribute_setup.py
diff options
context:
space:
mode:
authortarek <none@none>2009-09-27 20:45:58 +0200
committertarek <none@none>2009-09-27 20:45:58 +0200
commit93ec26e2fde1f0a28c5ada2ee9a5323dd92de5c7 (patch)
tree0753e1eb0b3d9bb2a135be0aaaec1d2f367505da /tests/test_distribute_setup.py
parent93663d98ca27e93e6ed76eb85d4753b630623834 (diff)
downloadexternal_python_setuptools-93ec26e2fde1f0a28c5ada2ee9a5323dd92de5c7.tar.gz
external_python_setuptools-93ec26e2fde1f0a28c5ada2ee9a5323dd92de5c7.tar.bz2
external_python_setuptools-93ec26e2fde1f0a28c5ada2ee9a5323dd92de5c7.zip
fixed the test
--HG-- branch : distribute extra : rebase_source : baa02e55e21c112f8ebef178ec7c54fd998f93ea
Diffstat (limited to 'tests/test_distribute_setup.py')
-rw-r--r--tests/test_distribute_setup.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/tests/test_distribute_setup.py b/tests/test_distribute_setup.py
index 76f8f8fa..4c9079a7 100644
--- a/tests/test_distribute_setup.py
+++ b/tests/test_distribute_setup.py
@@ -9,8 +9,9 @@ CURDIR = os.path.abspath(os.path.dirname(__file__))
TOPDIR = os.path.split(CURDIR)[0]
sys.path.insert(0, TOPDIR)
-from distribute_setup import (use_setuptools, _build_egg, python_cmd,
- _do_download, _install)
+from distribute_setup import (use_setuptools, _build_egg, _python_cmd,
+ _do_download, _install, DEFAULT_URL,
+ DEFAULT_VERSION)
import distribute_setup
class TestSetup(unittest.TestCase):
@@ -23,8 +24,8 @@ class TestSetup(unittest.TestCase):
self.cwd = os.getcwd()
self.tmpdir = tempfile.mkdtemp()
os.chdir(TOPDIR)
- python_cmd("setup.py -q egg_info -RDb '' sdist --dist-dir %s" % \
- self.tmpdir)
+ _python_cmd("setup.py", "-q", "egg_info", "-RDb", "''", "sdist",
+ "--dist-dir", "%s" % self.tmpdir)
tarball = os.listdir(self.tmpdir)[0]
self.tarball = os.path.join(self.tmpdir, tarball)
import urllib2
@@ -46,7 +47,7 @@ class TestSetup(unittest.TestCase):
def test_do_download(self):
tmpdir = tempfile.mkdtemp()
- _do_download(to_dir=tmpdir)
+ _do_download(DEFAULT_VERSION, DEFAULT_URL, tmpdir, 1)
import setuptools
self.assert_(setuptools.bootstrap_install_from.startswith(tmpdir))