From 93ec26e2fde1f0a28c5ada2ee9a5323dd92de5c7 Mon Sep 17 00:00:00 2001 From: tarek Date: Sun, 27 Sep 2009 20:45:58 +0200 Subject: fixed the test --HG-- branch : distribute extra : rebase_source : baa02e55e21c112f8ebef178ec7c54fd998f93ea --- tests/test_distribute_setup.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'tests') 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)) -- cgit v1.2.3