summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/tests/test_bdist.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/distutils/tests/test_bdist.py')
-rw-r--r--Lib/distutils/tests/test_bdist.py14
1 files changed, 5 insertions, 9 deletions
diff --git a/Lib/distutils/tests/test_bdist.py b/Lib/distutils/tests/test_bdist.py
index 55fa393..0f26b7e 100644
--- a/Lib/distutils/tests/test_bdist.py
+++ b/Lib/distutils/tests/test_bdist.py
@@ -18,13 +18,12 @@ class BuildTestCase(support.TempdirManager,
# we can set the format
dist = self.create_dist()[1]
cmd = bdist(dist)
- cmd.formats = ['msi']
+ cmd.formats = ['tar']
cmd.ensure_finalized()
- self.assertEqual(cmd.formats, ['msi'])
+ self.assertEqual(cmd.formats, ['tar'])
# what formats does bdist offer?
- formats = ['bztar', 'gztar', 'msi', 'rpm', 'tar',
- 'xztar', 'zip', 'ztar']
+ formats = ['bztar', 'gztar', 'rpm', 'tar', 'xztar', 'zip', 'ztar']
found = sorted(cmd.format_command)
self.assertEqual(found, formats)
@@ -36,11 +35,7 @@ class BuildTestCase(support.TempdirManager,
cmd.ensure_finalized()
dist.command_obj['bdist'] = cmd
- names = ['bdist_dumb'] # bdist_rpm does not support --skip-build
- if os.name == 'nt':
- names.append('bdist_msi')
-
- for name in names:
+ for name in ['bdist_dumb']: # bdist_rpm does not support --skip-build
subcmd = cmd.get_finalized_command(name)
if getattr(subcmd, '_unsupported', False):
# command is not supported on this build
@@ -52,5 +47,6 @@ class BuildTestCase(support.TempdirManager,
def test_suite():
return unittest.makeSuite(BuildTestCase)
+
if __name__ == '__main__':
run_unittest(test_suite())