1 | """Do a minimal test of all the modules that aren't otherwise tested."""
|
---|
2 |
|
---|
3 | from test import test_support
|
---|
4 | import sys
|
---|
5 | import unittest
|
---|
6 |
|
---|
7 |
|
---|
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
|
---|
17 |
|
---|
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
|
---|
27 |
|
---|
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
|
---|
46 |
|
---|
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 mailcap
|
---|
57 | import mimify
|
---|
58 | import nntplib
|
---|
59 | import nturl2path
|
---|
60 | import opcode
|
---|
61 | import os2emxpath
|
---|
62 | import pdb
|
---|
63 | import posixfile
|
---|
64 | import pstats
|
---|
65 | import py_compile
|
---|
66 | import rexec
|
---|
67 | import sched
|
---|
68 | import sndhdr
|
---|
69 | import statvfs
|
---|
70 | import stringold
|
---|
71 | import sunau
|
---|
72 | import sunaudio
|
---|
73 | import symbol
|
---|
74 | import tabnanny
|
---|
75 | import timeit
|
---|
76 | import toaiff
|
---|
77 | import token
|
---|
78 | try:
|
---|
79 | import tty # not available on Windows
|
---|
80 | except ImportError:
|
---|
81 | if test_support.verbose:
|
---|
82 | print "skipping tty"
|
---|
83 |
|
---|
84 | # Can't test the "user" module -- if the user has a ~/.pythonrc.py, it
|
---|
85 | # can screw up all sorts of things (esp. if it prints!).
|
---|
86 | #import user
|
---|
87 | import webbrowser
|
---|
88 | import xml
|
---|
89 |
|
---|
90 |
|
---|
91 | def test_main():
|
---|
92 | test_support.run_unittest(TestUntestedModules)
|
---|
93 |
|
---|
94 | if __name__ == "__main__":
|
---|
95 | test_main()
|
---|