blob: 07802d6263f2eac9b87999fe026b34c10302e3ee [file] [log] [blame]
Fred Draked74804d2001-01-22 19:38:37 +00001"""Do a minimal test of all the modules that aren't otherwise tested."""
Tim Petersd93c0b62001-01-19 05:41:36 +00002
Benjamin Petersonee8712c2008-05-20 21:35:26 +00003from test import support
Guido van Rossumcd16bf62007-06-13 18:07:49 +00004import sys
Christian Heimes5e696852008-04-09 08:37:03 +00005import unittest
Fred Drakeb1124812001-10-25 18:11:10 +00006
Christian Heimes5e696852008-04-09 08:37:03 +00007class TestUntestedModules(unittest.TestCase):
8 def test_at_least_import_untested_modules(self):
Florent Xicluna41fe6152010-04-02 18:52:12 +00009 with support.check_warnings(quiet=True):
Christian Heimes5e696852008-04-09 08:37:03 +000010 import bdb
11 import cgitb
Christian Heimes5e696852008-04-09 08:37:03 +000012 import code
Tim Petersf87d8572001-01-23 09:50:30 +000013
Christian Heimes5e696852008-04-09 08:37:03 +000014 import distutils.bcppcompiler
15 import distutils.ccompiler
Christian Heimes5e696852008-04-09 08:37:03 +000016 import distutils.cygwinccompiler
Christian Heimes5e696852008-04-09 08:37:03 +000017 import distutils.emxccompiler
Christian Heimes5e696852008-04-09 08:37:03 +000018 import distutils.filelist
Christian Heimes5e696852008-04-09 08:37:03 +000019 if sys.platform.startswith('win'):
20 import distutils.msvccompiler
Christian Heimes5e696852008-04-09 08:37:03 +000021 import distutils.text_file
22 import distutils.unixccompiler
Guido van Rossumcd16bf62007-06-13 18:07:49 +000023
Christian Heimes5e696852008-04-09 08:37:03 +000024 import distutils.command.bdist_dumb
25 if sys.platform.startswith('win'):
26 import distutils.command.bdist_msi
27 import distutils.command.bdist
28 import distutils.command.bdist_rpm
29 import distutils.command.bdist_wininst
30 import distutils.command.build_clib
31 import distutils.command.build_ext
32 import distutils.command.build
Christian Heimes5e696852008-04-09 08:37:03 +000033 import distutils.command.clean
34 import distutils.command.config
35 import distutils.command.install_data
36 import distutils.command.install_egg_info
37 import distutils.command.install_headers
38 import distutils.command.install_lib
Christian Heimes5e696852008-04-09 08:37:03 +000039 import distutils.command.register
40 import distutils.command.sdist
41 import distutils.command.upload
Guido van Rossumcd16bf62007-06-13 18:07:49 +000042
Christian Heimes5e696852008-04-09 08:37:03 +000043 import encodings
44 import formatter
Christian Heimes5e696852008-04-09 08:37:03 +000045 import getpass
Fred Drake3c50ea42008-05-17 22:02:32 +000046 import html.entities
Christian Heimes5e696852008-04-09 08:37:03 +000047 import imghdr
Christian Heimes5e696852008-04-09 08:37:03 +000048 import keyword
Christian Heimes5e696852008-04-09 08:37:03 +000049 import macurl2path
50 import mailcap
Christian Heimes5e696852008-04-09 08:37:03 +000051 import nturl2path
Christian Heimes5e696852008-04-09 08:37:03 +000052 import os2emxpath
Christian Heimes5e696852008-04-09 08:37:03 +000053 import pstats
54 import py_compile
Christian Heimes5e696852008-04-09 08:37:03 +000055 import sndhdr
Christian Heimes5e696852008-04-09 08:37:03 +000056 import tabnanny
Christian Heimes5e696852008-04-09 08:37:03 +000057 try:
58 import tty # not available on Windows
59 except ImportError:
Benjamin Petersonee8712c2008-05-20 21:35:26 +000060 if support.verbose:
Christian Heimes5e696852008-04-09 08:37:03 +000061 print("skipping tty")
Thomas Wouters49fd7fa2006-04-21 10:40:58 +000062
Christian Heimes5e696852008-04-09 08:37:03 +000063
64def test_main():
Benjamin Petersonee8712c2008-05-20 21:35:26 +000065 support.run_unittest(TestUntestedModules)
Christian Heimes5e696852008-04-09 08:37:03 +000066
67if __name__ == "__main__":
68 test_main()