mirror of
https://github.com/python/cpython.git
synced 2025-08-02 16:13:13 +00:00

Use new test.support helper submodules in tests: * distutils tests * test_buffer * test_compile * test_filecmp * test_fileinput * test_readline * test_smtpnet * test_structmembers * test_tools
27 lines
843 B
Python
27 lines
843 B
Python
"""Tests for distutils.command.bdist_msi."""
|
|
import sys
|
|
import unittest
|
|
from test.support import run_unittest
|
|
from test.support.warnings_helper import check_warnings
|
|
from distutils.tests import support
|
|
|
|
|
|
@unittest.skipUnless(sys.platform == 'win32', 'these tests require Windows')
|
|
class BDistMSITestCase(support.TempdirManager,
|
|
support.LoggingSilencer,
|
|
unittest.TestCase):
|
|
|
|
def test_minimal(self):
|
|
# minimal test XXX need more tests
|
|
from distutils.command.bdist_msi import bdist_msi
|
|
project_dir, dist = self.create_dist()
|
|
with check_warnings(("", DeprecationWarning)):
|
|
cmd = bdist_msi(dist)
|
|
cmd.ensure_finalized()
|
|
|
|
|
|
def test_suite():
|
|
return unittest.makeSuite(BDistMSITestCase)
|
|
|
|
if __name__ == '__main__':
|
|
run_unittest(test_suite())
|