+++ /dev/null
-"""Tests for distutils.command.bdist_wininst."""\r
-import unittest\r
-\r
-from test.test_support import run_unittest\r
-\r
-from distutils.command.bdist_wininst import bdist_wininst\r
-from distutils.tests import support\r
-\r
-class BuildWinInstTestCase(support.TempdirManager,\r
- support.LoggingSilencer,\r
- unittest.TestCase):\r
-\r
- def test_get_exe_bytes(self):\r
-\r
- # issue5731: command was broken on non-windows platforms\r
- # this test makes sure it works now for every platform\r
- # let's create a command\r
- pkg_pth, dist = self.create_dist()\r
- cmd = bdist_wininst(dist)\r
- cmd.ensure_finalized()\r
-\r
- # let's run the code that finds the right wininst*.exe file\r
- # and make sure it finds it and returns its content\r
- # no matter what platform we have\r
- exe_file = cmd.get_exe_bytes()\r
- self.assertTrue(len(exe_file) > 10)\r
-\r
-def test_suite():\r
- return unittest.makeSuite(BuildWinInstTestCase)\r
-\r
-if __name__ == '__main__':\r
- run_unittest(test_suite())\r