Issue #6615: logging: Used weak references in internal handler list. Thanks to flox...
[python.git] / Lib / test / test_sundry.py
blobcef155bb2aec9940554c0267dc9f952bd05d84da
1 """Do a minimal test of all the modules that aren't otherwise tested."""
3 from test import test_support
4 import sys
5 import unittest
6 import warnings
9 class TestUntestedModules(unittest.TestCase):
10 def test_at_least_import_untested_modules(self):
11 with warnings.catch_warnings():
12 warnings.simplefilter("ignore")
13 import CGIHTTPServer
14 import audiodev
15 import bdb
16 import cgitb
17 import code
18 import compileall
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
49 import encodings
50 import formatter
51 import getpass
52 import htmlentitydefs
53 import ihooks
54 import imghdr
55 import imputil
56 import keyword
57 import linecache
58 import macurl2path
59 import mailcap
60 import mimify
61 import nntplib
62 import nturl2path
63 import opcode
64 import os2emxpath
65 import pdb
66 import posixfile
67 import pstats
68 import py_compile
69 import rexec
70 import rlcompleter
71 import sched
72 import sndhdr
73 import statvfs
74 import stringold
75 import sunau
76 import sunaudio
77 import symbol
78 import tabnanny
79 import timeit
80 import toaiff
81 import token
82 try:
83 import tty # not available on Windows
84 except ImportError:
85 if test_support.verbose:
86 print "skipping tty"
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!).
90 #import user
91 import webbrowser
92 import xml
95 def test_main():
96 test_support.run_unittest(TestUntestedModules)
98 if __name__ == "__main__":
99 test_main()