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

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 7 years, 3 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
(Both sides are equal)
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 try: 15 try:
16 from distutils.command.bdist_msi import bdist_msi # if msi module is not build 16 from distutils.command.bdist_msi import bdist_msi # if msi module is not build
17 except ImportError: 17 except ImportError:
18 self.skipTest("requires bdist_msi module") 18 self.skipTest("requires bdist_msi module")
19 project_dir, dist = self.create_dist() 19 project_dir, dist = self.create_dist()
20 cmd = bdist_msi(dist) 20 cmd = bdist_msi(dist)
21 cmd.ensure_finalized() 21 cmd.ensure_finalized()
22 22
23 23
24 def test_suite(): 24 def test_suite():
25 return unittest.makeSuite(BDistMSITestCase) 25 return unittest.makeSuite(BDistMSITestCase)
26 26
27 if __name__ == '__main__': 27 if __name__ == '__main__':
28 run_unittest(test_suite()) 28 run_unittest(test_suite())
LEFTRIGHT

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