test_sundry.py 2.03 KB
Newer Older
1
"""Do a minimal test of all the modules that aren't otherwise tested."""
2

3
import warnings
4 5 6 7 8 9
warnings.filterwarnings('ignore', r".*posixfile module",
                        DeprecationWarning, 'posixfile$')
warnings.filterwarnings('ignore', r".*statcache module",
                        DeprecationWarning, 'statcache$')
warnings.filterwarnings('ignore', r".*'re' module",
                        DeprecationWarning, 'pre$')
10

11
from test.test_support import verbose
12

13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
import BaseHTTPServer
import CGIHTTPServer
import Queue
import SimpleHTTPServer
import SocketServer
import aifc
import anydbm
import audiodev
import bdb
import cmd
import code
import codeop
import colorsys
import commands
import compileall
28 29 30 31 32
try:
    import curses   # not available on Windows
except ImportError:
    if verbose:
        print "skipping curses"
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73
import dircache
import dis
import distutils
import doctest
import dumbdbm
import encodings
import filecmp
import fnmatch
import formatter
import fpformat
import ftplib
import getpass
import glob
import gopherlib
import htmlentitydefs
import htmllib
import httplib
import imaplib
import imghdr
import imputil
import keyword
import macpath
import macurl2path
import mailcap
import mhlib
import mimetypes
import mimify
import multifile
import mutex
import nntplib
import nturl2path
import pdb
import pipes
#import poplib
import posixfile
import pre
import profile
import pstats
import py_compile
#import reconvert
import repr
74 75 76 77 78
try:
    import rlcompleter   # not available on Windows
except ImportError:
    if verbose:
        print "skipping rlcompleter"
79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98
import robotparser
import sched
import sgmllib
import shelve
import shlex
import shutil
import smtplib
import sndhdr
import statcache
import statvfs
import stringold
import sunau
import sunaudio
import symbol
import tabnanny
import telnetlib
import test
import toaiff
#import tzparse
import urllib2
99 100 101
# Can't test the "user" module -- if the user has a ~/.pythonrc.py, it
# can screw up all sorts of things (esp. if it prints!).
#import user
102 103 104 105
import webbrowser
import whichdb
import xdrlib
import xml