summaryrefslogtreecommitdiff
path: root/distutils2/tests/test_command_bdist.py
diff options
context:
space:
mode:
author?ric Araujo <merwok@netwok.org>2011-09-19 03:51:51 +0200
committer?ric Araujo <merwok@netwok.org>2011-09-19 03:51:51 +0200
commit6b181d2a0fb465faf6402cdda337fbfeda93207e (patch)
treed307dd92a194e9596c8bf411c97da2ec1facc41e /distutils2/tests/test_command_bdist.py
parent58d5e245ec21306380033c6d3e6d0c860b6f2dc4 (diff)
downloaddisutils2-6b181d2a0fb465faf6402cdda337fbfeda93207e.tar.gz
Remove obsolete mentions of the compress program and .Z archives.
d2 uses the shutil.make_archive function (moved from distutils), which does not support compress. There is no test to check that ?bdist --format whatever? works, so this slipped by.
Diffstat (limited to 'distutils2/tests/test_command_bdist.py')
-rw-r--r--distutils2/tests/test_command_bdist.py23
1 files changed, 10 insertions, 13 deletions
diff --git a/distutils2/tests/test_command_bdist.py b/distutils2/tests/test_command_bdist.py
index 6527edb..3b119f5 100644
--- a/distutils2/tests/test_command_bdist.py
+++ b/distutils2/tests/test_command_bdist.py
@@ -27,36 +27,33 @@ class BuildTestCase(support.TempdirManager,
util.get_platform = self._get_platform
def test_formats(self):
-
# let's create a command and make sure
- # we can fix the format
- pkg_pth, dist = self.create_dist()
+ # we can set the format
+ dist = self.create_dist()[1]
cmd = bdist(dist)
cmd.formats = ['msi']
cmd.ensure_finalized()
self.assertEqual(cmd.formats, ['msi'])
- # what format bdist offers ?
- # XXX an explicit list in bdist is
- # not the best way to bdist_* commands
- # we should add a registry
- formats = sorted(('zip', 'gztar', 'bztar', 'ztar',
- 'tar', 'wininst', 'msi'))
+ # what formats does bdist offer?
+ # XXX hard-coded lists are not the best way to find available bdist_*
+ # commands; we should add a registry
+ formats = ['bztar', 'gztar', 'msi', 'tar', 'wininst', 'zip']
found = sorted(cmd.format_command)
self.assertEqual(found, formats)
def test_skip_build(self):
- pkg_pth, dist = self.create_dist()
+ dist = self.create_dist()[1]
cmd = bdist(dist)
cmd.skip_build = False
- cmd.formats = ['ztar']
+ cmd.formats = ['zip']
cmd.ensure_finalized()
self.assertFalse(self._get_platform_called)
- pkg_pth, dist = self.create_dist()
+ dist = self.create_dist()[1]
cmd = bdist(dist)
cmd.skip_build = True
- cmd.formats = ['ztar']
+ cmd.formats = ['zip']
cmd.ensure_finalized()
self.assertTrue(self._get_platform_called)