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