aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2014-03-23 19:26:16 -0400
committerJason R. Coombs <jaraco@jaraco.com>2014-03-23 19:26:16 -0400
commitbfe8fb26996ca3d06c0c87176ff46a60834fb593 (patch)
tree5da3a9dbfc890e5aee622695988f265e54fd5c86
parent6d4a70d613d5d03723ad55d2835f9d650b420356 (diff)
downloadexternal_python_setuptools-bfe8fb26996ca3d06c0c87176ff46a60834fb593.tar.gz
external_python_setuptools-bfe8fb26996ca3d06c0c87176ff46a60834fb593.tar.bz2
external_python_setuptools-bfe8fb26996ca3d06c0c87176ff46a60834fb593.zip
Force sdist zip format (preferred for _build_egg)
--HG-- extra : amend_source : eb261716fc15148a101c059fb03c0f51b683c673
-rw-r--r--tests/test_ez_setup.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/test_ez_setup.py b/tests/test_ez_setup.py
index 1825fb34..7a6baf0c 100644
--- a/tests/test_ez_setup.py
+++ b/tests/test_ez_setup.py
@@ -24,9 +24,9 @@ class TestSetup(unittest.TestCase):
self.tmpdir = tempfile.mkdtemp()
os.chdir(TOPDIR)
_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)
+ "--formats", "zip", "--dist-dir", self.tmpdir)
+ zipball = os.listdir(self.tmpdir)[0]
+ self.zipball = os.path.join(self.tmpdir, zipball)
from setuptools.compat import urllib2
urllib2.urlopen = self.urlopen
@@ -37,7 +37,7 @@ class TestSetup(unittest.TestCase):
def test_build_egg(self):
# making it an egg
- egg = _build_egg('Egg to be built', self.tarball, self.tmpdir)
+ egg = _build_egg('Egg to be built', self.zipball, self.tmpdir)
# now trying to import it
sys.path[0] = egg
@@ -54,7 +54,7 @@ class TestSetup(unittest.TestCase):
def _faked(*args):
return True
ez_setup.python_cmd = _faked
- _install(self.tarball)
+ _install(self.zipball)
def test_use_setuptools(self):
self.assertEqual(use_setuptools(), None)