1 """Do a minimal test of all the modules that aren't otherwise tested."""
3 from test
import test_support
8 class TestUntestedModules(unittest
.TestCase
):
9 def test_at_least_import_untested_modules(self
):
10 with test_support
.check_warnings(quiet
=True):
18 import distutils
.bcppcompiler
19 import distutils
.ccompiler
20 import distutils
.cygwinccompiler
21 import distutils
.emxccompiler
22 import distutils
.filelist
23 if sys
.platform
.startswith('win'):
24 import distutils
.msvccompiler
25 import distutils
.text_file
26 import distutils
.unixccompiler
28 import distutils
.command
.bdist_dumb
29 if sys
.platform
.startswith('win'):
30 import distutils
.command
.bdist_msi
31 import distutils
.command
.bdist
32 import distutils
.command
.bdist_rpm
33 import distutils
.command
.bdist_wininst
34 import distutils
.command
.build_clib
35 import distutils
.command
.build_ext
36 import distutils
.command
.build
37 import distutils
.command
.clean
38 import distutils
.command
.config
39 import distutils
.command
.install_data
40 import distutils
.command
.install_egg_info
41 import distutils
.command
.install_headers
42 import distutils
.command
.install_lib
43 import distutils
.command
.register
44 import distutils
.command
.sdist
45 import distutils
.command
.upload
81 import tty
# not available on Windows
83 if test_support
.verbose
:
86 # Can't test the "user" module -- if the user has a ~/.pythonrc.py, it
87 # can screw up all sorts of things (esp. if it prints!).
94 test_support
.run_unittest(TestUntestedModules
)
96 if __name__
== "__main__":