test_bdist_msi.py 803 B

1234567891011121314151617181920212223242526
  1. """Tests for distutils.command.bdist_msi."""
  2. import sys
  3. import unittest
  4. from test.support import run_unittest, check_warnings
  5. from distutils.tests import support
  6. @unittest.skipUnless(sys.platform == 'win32', 'these tests require Windows')
  7. class BDistMSITestCase(support.TempdirManager,
  8. support.LoggingSilencer,
  9. unittest.TestCase):
  10. def test_minimal(self):
  11. # minimal test XXX need more tests
  12. from distutils.command.bdist_msi import bdist_msi
  13. project_dir, dist = self.create_dist()
  14. with check_warnings(("", DeprecationWarning)):
  15. cmd = bdist_msi(dist)
  16. cmd.ensure_finalized()
  17. def test_suite():
  18. return unittest.makeSuite(BDistMSITestCase)
  19. if __name__ == '__main__':
  20. run_unittest(test_suite())