test_sundry performs minimal tests (a simple import...) on modules that are not tested otherwise.
Some of them now have tests and can be removed. Only 70 to go...
This commit is contained in:
parent
e8559916fb
commit
87da1278eb
|
@ -9,41 +9,24 @@ import warnings
|
||||||
class TestUntestedModules(unittest.TestCase):
|
class TestUntestedModules(unittest.TestCase):
|
||||||
def test_at_least_import_untested_modules(self):
|
def test_at_least_import_untested_modules(self):
|
||||||
with test_support.catch_warning():
|
with test_support.catch_warning():
|
||||||
import BaseHTTPServer
|
|
||||||
import DocXMLRPCServer
|
|
||||||
import CGIHTTPServer
|
import CGIHTTPServer
|
||||||
import SimpleHTTPServer
|
|
||||||
import SimpleXMLRPCServer
|
|
||||||
import aifc
|
import aifc
|
||||||
import audiodev
|
import audiodev
|
||||||
import bdb
|
import bdb
|
||||||
import cgitb
|
import cgitb
|
||||||
import cmd
|
|
||||||
import code
|
import code
|
||||||
import compileall
|
import compileall
|
||||||
|
|
||||||
import distutils.archive_util
|
|
||||||
import distutils.bcppcompiler
|
import distutils.bcppcompiler
|
||||||
import distutils.ccompiler
|
import distutils.ccompiler
|
||||||
import distutils.cmd
|
|
||||||
import distutils.core
|
|
||||||
import distutils.cygwinccompiler
|
import distutils.cygwinccompiler
|
||||||
import distutils.dep_util
|
|
||||||
import distutils.dir_util
|
|
||||||
import distutils.emxccompiler
|
import distutils.emxccompiler
|
||||||
import distutils.errors
|
|
||||||
import distutils.extension
|
|
||||||
import distutils.file_util
|
|
||||||
import distutils.filelist
|
import distutils.filelist
|
||||||
import distutils.log
|
|
||||||
if sys.platform.startswith('win'):
|
if sys.platform.startswith('win'):
|
||||||
import distutils.msvccompiler
|
import distutils.msvccompiler
|
||||||
import distutils.mwerkscompiler
|
import distutils.mwerkscompiler
|
||||||
import distutils.sysconfig
|
|
||||||
import distutils.text_file
|
import distutils.text_file
|
||||||
import distutils.unixccompiler
|
import distutils.unixccompiler
|
||||||
import distutils.util
|
|
||||||
import distutils.version
|
|
||||||
|
|
||||||
import distutils.command.bdist_dumb
|
import distutils.command.bdist_dumb
|
||||||
if sys.platform.startswith('win'):
|
if sys.platform.startswith('win'):
|
||||||
|
@ -54,23 +37,18 @@ class TestUntestedModules(unittest.TestCase):
|
||||||
import distutils.command.build_clib
|
import distutils.command.build_clib
|
||||||
import distutils.command.build_ext
|
import distutils.command.build_ext
|
||||||
import distutils.command.build
|
import distutils.command.build
|
||||||
import distutils.command.build_py
|
|
||||||
import distutils.command.build_scripts
|
|
||||||
import distutils.command.clean
|
import distutils.command.clean
|
||||||
import distutils.command.config
|
import distutils.command.config
|
||||||
import distutils.command.install_data
|
import distutils.command.install_data
|
||||||
import distutils.command.install_egg_info
|
import distutils.command.install_egg_info
|
||||||
import distutils.command.install_headers
|
import distutils.command.install_headers
|
||||||
import distutils.command.install_lib
|
import distutils.command.install_lib
|
||||||
import distutils.command.install
|
|
||||||
import distutils.command.install_scripts
|
|
||||||
import distutils.command.register
|
import distutils.command.register
|
||||||
import distutils.command.sdist
|
import distutils.command.sdist
|
||||||
import distutils.command.upload
|
import distutils.command.upload
|
||||||
|
|
||||||
import encodings
|
import encodings
|
||||||
import formatter
|
import formatter
|
||||||
import ftplib
|
|
||||||
import getpass
|
import getpass
|
||||||
import htmlentitydefs
|
import htmlentitydefs
|
||||||
import ihooks
|
import ihooks
|
||||||
|
@ -81,7 +59,6 @@ class TestUntestedModules(unittest.TestCase):
|
||||||
import macurl2path
|
import macurl2path
|
||||||
import mailcap
|
import mailcap
|
||||||
import mimify
|
import mimify
|
||||||
import mutex
|
|
||||||
import nntplib
|
import nntplib
|
||||||
import nturl2path
|
import nturl2path
|
||||||
import opcode
|
import opcode
|
||||||
|
@ -93,7 +70,6 @@ class TestUntestedModules(unittest.TestCase):
|
||||||
import rexec
|
import rexec
|
||||||
import rlcompleter
|
import rlcompleter
|
||||||
import sched
|
import sched
|
||||||
import smtplib
|
|
||||||
import sndhdr
|
import sndhdr
|
||||||
import statvfs
|
import statvfs
|
||||||
import stringold
|
import stringold
|
||||||
|
@ -101,7 +77,6 @@ class TestUntestedModules(unittest.TestCase):
|
||||||
import sunaudio
|
import sunaudio
|
||||||
import symbol
|
import symbol
|
||||||
import tabnanny
|
import tabnanny
|
||||||
import telnetlib
|
|
||||||
import timeit
|
import timeit
|
||||||
import toaiff
|
import toaiff
|
||||||
import token
|
import token
|
||||||
|
|
Loading…
Reference in New Issue