diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2011-10-26 13:50:50 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2011-10-26 13:50:50 (GMT) |
| commit | e46ef289e142982d7bd592faa7b0f85470364c01 (patch) | |
| tree | cda253e03788f7db0a7cdcd05662f66b4455e298 /src/python/stdlib/distutils/tests/test_bdist.py | |
| parent | d0d0d62bbcbb5c3417f8cba419c83bac192ea985 (diff) | |
| download | powder-e46ef289e142982d7bd592faa7b0f85470364c01.zip powder-e46ef289e142982d7bd592faa7b0f85470364c01.tar.gz | |
Remove Python console stuff
Diffstat (limited to 'src/python/stdlib/distutils/tests/test_bdist.py')
| -rw-r--r-- | src/python/stdlib/distutils/tests/test_bdist.py | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/src/python/stdlib/distutils/tests/test_bdist.py b/src/python/stdlib/distutils/tests/test_bdist.py deleted file mode 100644 index fa7cd5a..0000000 --- a/src/python/stdlib/distutils/tests/test_bdist.py +++ /dev/null @@ -1,45 +0,0 @@ -"""Tests for distutils.command.bdist.""" -import unittest -import sys -import os -import tempfile -import shutil - -from test.test_support import run_unittest - -from distutils.core import Distribution -from distutils.command.bdist import bdist -from distutils.tests import support -from distutils.spawn import find_executable -from distutils import spawn -from distutils.errors import DistutilsExecError - -class BuildTestCase(support.TempdirManager, - unittest.TestCase): - - def test_formats(self): - - # let's create a command and make sure - # we can fix the format - pkg_pth, dist = self.create_dist() - 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 = ['rpm', 'zip', 'gztar', 'bztar', 'ztar', - 'tar', 'wininst', 'msi'] - formats.sort() - founded = cmd.format_command.keys() - founded.sort() - self.assertEqual(founded, formats) - -def test_suite(): - return unittest.makeSuite(BuildTestCase) - -if __name__ == '__main__': - run_unittest(test_suite()) |
