Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(25)

Side by Side Diff: Lib/distutils/tests/test_bdist_msi.py

Issue 3871: cross and native build of python for mingw32 with distutils
Patch Set: Created 7 years, 2 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Lib/distutils/tests/support.py ('k') | Lib/distutils/tests/test_bdist.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 """Tests for distutils.command.bdist_msi.""" 1 """Tests for distutils.command.bdist_msi."""
2 import sys 2 import sys
3 import unittest 3 import unittest
4 from test.support import run_unittest 4 from test.support import run_unittest
5 from distutils.tests import support 5 from distutils.tests import support
6 6
7 7
8 @unittest.skipUnless(sys.platform == 'win32', 'these tests require Windows') 8 @unittest.skipUnless(sys.platform == 'win32', 'these tests require Windows')
9 class BDistMSITestCase(support.TempdirManager, 9 class BDistMSITestCase(support.TempdirManager,
10 support.LoggingSilencer, 10 support.LoggingSilencer,
11 unittest.TestCase): 11 unittest.TestCase):
12 12
13 def test_minimal(self): 13 def test_minimal(self):
14 # minimal test XXX need more tests 14 # minimal test XXX need more tests
15 from distutils.command.bdist_msi import bdist_msi 15 try:
16 from distutils.command.bdist_msi import bdist_msi # if msi module is not build
17 except ImportError:
18 self.skipTest("requires bdist_msi module")
16 project_dir, dist = self.create_dist() 19 project_dir, dist = self.create_dist()
17 cmd = bdist_msi(dist) 20 cmd = bdist_msi(dist)
18 cmd.ensure_finalized() 21 cmd.ensure_finalized()
19 22
20 23
21 def test_suite(): 24 def test_suite():
22 return unittest.makeSuite(BDistMSITestCase) 25 return unittest.makeSuite(BDistMSITestCase)
23 26
24 if __name__ == '__main__': 27 if __name__ == '__main__':
25 run_unittest(test_suite()) 28 run_unittest(test_suite())
OLDNEW
« no previous file with comments | « Lib/distutils/tests/support.py ('k') | Lib/distutils/tests/test_bdist.py » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+