Fred Drake | d74804d | 2001-01-22 19:38:37 +0000 | [diff] [blame] | 1 | """Do a minimal test of all the modules that aren't otherwise tested.""" |
Tim Peters | d93c0b6 | 2001-01-19 05:41:36 +0000 | [diff] [blame] | 2 | |
Christian Heimes | 5e69685 | 2008-04-09 08:37:03 +0000 | [diff] [blame] | 3 | from test import test_support |
Guido van Rossum | cd16bf6 | 2007-06-13 18:07:49 +0000 | [diff] [blame] | 4 | import sys |
Christian Heimes | 5e69685 | 2008-04-09 08:37:03 +0000 | [diff] [blame] | 5 | import unittest |
Fred Drake | b112481 | 2001-10-25 18:11:10 +0000 | [diff] [blame] | 6 | import warnings |
Fred Drake | b112481 | 2001-10-25 18:11:10 +0000 | [diff] [blame] | 7 | |
Christian Heimes | 5e69685 | 2008-04-09 08:37:03 +0000 | [diff] [blame] | 8 | class TestUntestedModules(unittest.TestCase): |
| 9 | def test_at_least_import_untested_modules(self): |
| 10 | with test_support.catch_warning(): |
Christian Heimes | 5e69685 | 2008-04-09 08:37:03 +0000 | [diff] [blame] | 11 | import CGIHTTPServer |
Christian Heimes | 5e69685 | 2008-04-09 08:37:03 +0000 | [diff] [blame] | 12 | import aifc |
| 13 | import bdb |
| 14 | import cgitb |
Christian Heimes | 5e69685 | 2008-04-09 08:37:03 +0000 | [diff] [blame] | 15 | import code |
| 16 | import compileall |
Tim Peters | f87d857 | 2001-01-23 09:50:30 +0000 | [diff] [blame] | 17 | |
Christian Heimes | 5e69685 | 2008-04-09 08:37:03 +0000 | [diff] [blame] | 18 | import distutils.bcppcompiler |
| 19 | import distutils.ccompiler |
Christian Heimes | 5e69685 | 2008-04-09 08:37:03 +0000 | [diff] [blame] | 20 | import distutils.cygwinccompiler |
Christian Heimes | 5e69685 | 2008-04-09 08:37:03 +0000 | [diff] [blame] | 21 | import distutils.emxccompiler |
Christian Heimes | 5e69685 | 2008-04-09 08:37:03 +0000 | [diff] [blame] | 22 | import distutils.filelist |
Christian Heimes | 5e69685 | 2008-04-09 08:37:03 +0000 | [diff] [blame] | 23 | if sys.platform.startswith('win'): |
| 24 | import distutils.msvccompiler |
| 25 | import distutils.mwerkscompiler |
Christian Heimes | 5e69685 | 2008-04-09 08:37:03 +0000 | [diff] [blame] | 26 | import distutils.text_file |
| 27 | import distutils.unixccompiler |
Guido van Rossum | cd16bf6 | 2007-06-13 18:07:49 +0000 | [diff] [blame] | 28 | |
Christian Heimes | 5e69685 | 2008-04-09 08:37:03 +0000 | [diff] [blame] | 29 | import distutils.command.bdist_dumb |
| 30 | if sys.platform.startswith('win'): |
| 31 | import distutils.command.bdist_msi |
| 32 | import distutils.command.bdist |
| 33 | import distutils.command.bdist_rpm |
| 34 | import distutils.command.bdist_wininst |
| 35 | import distutils.command.build_clib |
| 36 | import distutils.command.build_ext |
| 37 | import distutils.command.build |
Christian Heimes | 5e69685 | 2008-04-09 08:37:03 +0000 | [diff] [blame] | 38 | import distutils.command.clean |
| 39 | import distutils.command.config |
| 40 | import distutils.command.install_data |
| 41 | import distutils.command.install_egg_info |
| 42 | import distutils.command.install_headers |
| 43 | import distutils.command.install_lib |
Christian Heimes | 5e69685 | 2008-04-09 08:37:03 +0000 | [diff] [blame] | 44 | import distutils.command.register |
| 45 | import distutils.command.sdist |
| 46 | import distutils.command.upload |
Guido van Rossum | cd16bf6 | 2007-06-13 18:07:49 +0000 | [diff] [blame] | 47 | |
Christian Heimes | 5e69685 | 2008-04-09 08:37:03 +0000 | [diff] [blame] | 48 | import encodings |
| 49 | import formatter |
Christian Heimes | 5e69685 | 2008-04-09 08:37:03 +0000 | [diff] [blame] | 50 | import getpass |
| 51 | import htmlentitydefs |
Christian Heimes | 5e69685 | 2008-04-09 08:37:03 +0000 | [diff] [blame] | 52 | import imghdr |
Christian Heimes | 5e69685 | 2008-04-09 08:37:03 +0000 | [diff] [blame] | 53 | import keyword |
| 54 | import linecache |
| 55 | import macurl2path |
| 56 | import mailcap |
Christian Heimes | 5e69685 | 2008-04-09 08:37:03 +0000 | [diff] [blame] | 57 | import nntplib |
| 58 | import nturl2path |
| 59 | import opcode |
| 60 | import os2emxpath |
| 61 | import pdb |
| 62 | import pstats |
| 63 | import py_compile |
Christian Heimes | 5e69685 | 2008-04-09 08:37:03 +0000 | [diff] [blame] | 64 | import rlcompleter |
| 65 | import sched |
Christian Heimes | 5e69685 | 2008-04-09 08:37:03 +0000 | [diff] [blame] | 66 | import sndhdr |
Christian Heimes | 5e69685 | 2008-04-09 08:37:03 +0000 | [diff] [blame] | 67 | import sunau |
| 68 | import sunaudio |
| 69 | import symbol |
| 70 | import tabnanny |
Christian Heimes | 5e69685 | 2008-04-09 08:37:03 +0000 | [diff] [blame] | 71 | import timeit |
| 72 | import token |
| 73 | try: |
| 74 | import tty # not available on Windows |
| 75 | except ImportError: |
| 76 | if test_support.verbose: |
| 77 | print("skipping tty") |
Christian Heimes | 5e69685 | 2008-04-09 08:37:03 +0000 | [diff] [blame] | 78 | import webbrowser |
| 79 | import xml |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 80 | |
Christian Heimes | 5e69685 | 2008-04-09 08:37:03 +0000 | [diff] [blame] | 81 | |
| 82 | def test_main(): |
| 83 | test_support.run_unittest(TestUntestedModules) |
| 84 | |
| 85 | if __name__ == "__main__": |
| 86 | test_main() |