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