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 | |
Benjamin Peterson | ee8712c | 2008-05-20 21:35:26 +0000 | [diff] [blame] | 3 | from test import 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): |
Benjamin Peterson | ee8712c | 2008-05-20 21:35:26 +0000 | [diff] [blame] | 10 | with support.catch_warning(): |
Christian Heimes | 5e69685 | 2008-04-09 08:37:03 +0000 | [diff] [blame] | 11 | import aifc |
| 12 | import bdb |
| 13 | import cgitb |
Christian Heimes | 5e69685 | 2008-04-09 08:37:03 +0000 | [diff] [blame] | 14 | import code |
| 15 | import compileall |
Tim Peters | f87d857 | 2001-01-23 09:50:30 +0000 | [diff] [blame] | 16 | |
Christian Heimes | 5e69685 | 2008-04-09 08:37:03 +0000 | [diff] [blame] | 17 | import distutils.bcppcompiler |
| 18 | import distutils.ccompiler |
Christian Heimes | 5e69685 | 2008-04-09 08:37:03 +0000 | [diff] [blame] | 19 | import distutils.cygwinccompiler |
Christian Heimes | 5e69685 | 2008-04-09 08:37:03 +0000 | [diff] [blame] | 20 | import distutils.emxccompiler |
Christian Heimes | 5e69685 | 2008-04-09 08:37:03 +0000 | [diff] [blame] | 21 | import distutils.filelist |
Christian Heimes | 5e69685 | 2008-04-09 08:37:03 +0000 | [diff] [blame] | 22 | if sys.platform.startswith('win'): |
| 23 | import distutils.msvccompiler |
| 24 | import distutils.mwerkscompiler |
Christian Heimes | 5e69685 | 2008-04-09 08:37:03 +0000 | [diff] [blame] | 25 | import distutils.text_file |
| 26 | import distutils.unixccompiler |
Guido van Rossum | cd16bf6 | 2007-06-13 18:07:49 +0000 | [diff] [blame] | 27 | |
Christian Heimes | 5e69685 | 2008-04-09 08:37:03 +0000 | [diff] [blame] | 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 |
Christian Heimes | 5e69685 | 2008-04-09 08:37:03 +0000 | [diff] [blame] | 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 |
Christian Heimes | 5e69685 | 2008-04-09 08:37:03 +0000 | [diff] [blame] | 43 | import distutils.command.register |
| 44 | import distutils.command.sdist |
| 45 | import distutils.command.upload |
Guido van Rossum | cd16bf6 | 2007-06-13 18:07:49 +0000 | [diff] [blame] | 46 | |
Christian Heimes | 5e69685 | 2008-04-09 08:37:03 +0000 | [diff] [blame] | 47 | import encodings |
| 48 | import formatter |
Christian Heimes | 5e69685 | 2008-04-09 08:37:03 +0000 | [diff] [blame] | 49 | import getpass |
Fred Drake | 3c50ea4 | 2008-05-17 22:02:32 +0000 | [diff] [blame] | 50 | import html.entities |
Christian Heimes | 5e69685 | 2008-04-09 08:37:03 +0000 | [diff] [blame] | 51 | import imghdr |
Christian Heimes | 5e69685 | 2008-04-09 08:37:03 +0000 | [diff] [blame] | 52 | import keyword |
| 53 | import linecache |
| 54 | import macurl2path |
| 55 | import mailcap |
Christian Heimes | 5e69685 | 2008-04-09 08:37:03 +0000 | [diff] [blame] | 56 | import nntplib |
| 57 | import nturl2path |
| 58 | import opcode |
| 59 | import os2emxpath |
| 60 | import pdb |
| 61 | import pstats |
| 62 | import py_compile |
Christian Heimes | 5e69685 | 2008-04-09 08:37:03 +0000 | [diff] [blame] | 63 | import rlcompleter |
| 64 | import sched |
Christian Heimes | 5e69685 | 2008-04-09 08:37:03 +0000 | [diff] [blame] | 65 | import sndhdr |
Christian Heimes | 5e69685 | 2008-04-09 08:37:03 +0000 | [diff] [blame] | 66 | import sunau |
| 67 | import sunaudio |
| 68 | import symbol |
| 69 | import tabnanny |
Christian Heimes | 5e69685 | 2008-04-09 08:37:03 +0000 | [diff] [blame] | 70 | import timeit |
| 71 | import token |
| 72 | try: |
| 73 | import tty # not available on Windows |
| 74 | except ImportError: |
Benjamin Peterson | ee8712c | 2008-05-20 21:35:26 +0000 | [diff] [blame] | 75 | if support.verbose: |
Christian Heimes | 5e69685 | 2008-04-09 08:37:03 +0000 | [diff] [blame] | 76 | print("skipping tty") |
Christian Heimes | 5e69685 | 2008-04-09 08:37:03 +0000 | [diff] [blame] | 77 | import webbrowser |
| 78 | import xml |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 79 | |
Christian Heimes | 5e69685 | 2008-04-09 08:37:03 +0000 | [diff] [blame] | 80 | |
| 81 | def test_main(): |
Benjamin Peterson | ee8712c | 2008-05-20 21:35:26 +0000 | [diff] [blame] | 82 | support.run_unittest(TestUntestedModules) |
Christian Heimes | 5e69685 | 2008-04-09 08:37:03 +0000 | [diff] [blame] | 83 | |
| 84 | if __name__ == "__main__": |
| 85 | test_main() |