move sections
[python/dscho.git] / Lib / test / test_sundry.py
blob3aade6d57d32fe52c22a767cb41212274597eb1d
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
8 class TestUntestedModules(unittest.TestCase):
9 def test_at_least_import_untested_modules(self):
10 with test_support.check_warnings(quiet=True):
11 import CGIHTTPServer
12 import audiodev
13 import bdb
14 import cgitb
15 import code
16 import compileall
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
47 import encodings
48 import formatter
49 import getpass
50 import htmlentitydefs
51 import ihooks
52 import imghdr
53 import imputil
54 import keyword
55 import linecache
56 import macurl2path
57 import mailcap
58 import mimify
59 import nntplib
60 import nturl2path
61 import opcode
62 import os2emxpath
63 import pdb
64 import posixfile
65 import pstats
66 import py_compile
67 import rexec
68 import rlcompleter
69 import sched
70 import sndhdr
71 import statvfs
72 import stringold
73 import sunau
74 import sunaudio
75 import symbol
76 import tabnanny
77 import timeit
78 import toaiff
79 import token
80 try:
81 import tty # not available on Windows
82 except ImportError:
83 if test_support.verbose:
84 print "skipping tty"
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!).
88 #import user
89 import webbrowser
90 import xml
93 def test_main():
94 test_support.run_unittest(TestUntestedModules)
96 if __name__ == "__main__":
97 test_main()