summaryrefslogtreecommitdiffstats
path: root/Lib/packaging/tests/test_command_bdist.py
diff options
context:
space:
mode:
authorÉric Araujo <merwok@netwok.org>2011-08-29 23:19:02 (GMT)
committerÉric Araujo <merwok@netwok.org>2011-08-29 23:19:02 (GMT)
commit83ab3f319b3b83c84c4df72349b6ce7d5ec936da (patch)
treee20adfadf4a6d50d954aa5cd13a3e89616a4fc4a /Lib/packaging/tests/test_command_bdist.py
parentff29ff88314badd8ba868de8cce5684d0f4611a4 (diff)
downloadcpython-83ab3f319b3b83c84c4df72349b6ce7d5ec936da.zip
cpython-83ab3f319b3b83c84c4df72349b6ce7d5ec936da.tar.gz
cpython-83ab3f319b3b83c84c4df72349b6ce7d5ec936da.tar.bz2
Remove obsolete mentions of the compress program and .Z archives.
Packaging uses the shutil.make_archive function copied 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 'Lib/packaging/tests/test_command_bdist.py')
-rw-r--r--Lib/packaging/tests/test_command_bdist.py19
1 files changed, 8 insertions, 11 deletions
diff --git a/Lib/packaging/tests/test_command_bdist.py b/Lib/packaging/tests/test_command_bdist.py
index 1522b7e..fa4093c 100644
--- a/Lib/packaging/tests/test_command_bdist.py
+++ b/Lib/packaging/tests/test_command_bdist.py
@@ -27,33 +27,30 @@ 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 format 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.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']