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

Delta Between Two Patch Sets: Lib/distutils/tests/test_bdist_msi.py

Issue 3871: cross and native build of python for mingw32 with distutils
Left Patch Set: Created 9 years, 5 months ago
Right 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:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « Lib/distutils/tests/support.py ('k') | Lib/distutils/tests/test_bdist.py » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 """Tests for distutils.command.bdist_msi.""" 1 """Tests for distutils.command.bdist_msi."""
2 import sys
2 import unittest 3 import unittest
3 import sys
4
5 from test.support import run_unittest 4 from test.support import run_unittest
6
7 from distutils.tests import support 5 from distutils.tests import support
8 6
9 @unittest.skipUnless(sys.platform=="win32", "These tests are only for win32") 7
10 @unittest.skipUnless('msys' not in sys.builtin_module_names, "MinGW can't build msi module") 8 @unittest.skipUnless(sys.platform == 'win32', 'these tests require Windows')
11 class BDistMSITestCase(support.TempdirManager, 9 class BDistMSITestCase(support.TempdirManager,
12 support.LoggingSilencer, 10 support.LoggingSilencer,
13 unittest.TestCase): 11 unittest.TestCase):
14 12
15 def test_minial(self): 13 def test_minimal(self):
16 # minimal test XXX need more tests 14 # minimal test XXX need more tests
17 from distutils.command.bdist_msi import bdist_msi 15 try:
18 pkg_pth, dist = self.create_dist() 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")
19 project_dir, dist = self.create_dist()
19 cmd = bdist_msi(dist) 20 cmd = bdist_msi(dist)
20 cmd.ensure_finalized() 21 cmd.ensure_finalized()
22
21 23
22 def test_suite(): 24 def test_suite():
23 return unittest.makeSuite(BDistMSITestCase) 25 return unittest.makeSuite(BDistMSITestCase)
24 26
25 if __name__ == '__main__': 27 if __name__ == '__main__':
26 run_unittest(test_suite()) 28 run_unittest(test_suite())
LEFTRIGHT

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