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