aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/test/test_sundry.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_sundry.py')
-rw-r--r--Lib/test/test_sundry.py40
1 files changed, 6 insertions, 34 deletions
diff --git a/Lib/test/test_sundry.py b/Lib/test/test_sundry.py
index 6e2b7971f72..07802d6263f 100644
--- a/Lib/test/test_sundry.py
+++ b/Lib/test/test_sundry.py
@@ -1,19 +1,15 @@
"""Do a minimal test of all the modules that aren't otherwise tested."""
-from test import test_support
+from test import support
import sys
import unittest
-
class TestUntestedModules(unittest.TestCase):
def test_at_least_import_untested_modules(self):
- with test_support.check_warnings(quiet=True):
- import CGIHTTPServer
- import audiodev
+ with support.check_warnings(quiet=True):
import bdb
import cgitb
import code
- import compileall
import distutils.bcppcompiler
import distutils.ccompiler
@@ -47,50 +43,26 @@ class TestUntestedModules(unittest.TestCase):
import encodings
import formatter
import getpass
- import htmlentitydefs
- import ihooks
+ import html.entities
import imghdr
- import imputil
import keyword
- import linecache
import macurl2path
import mailcap
- import mimify
- import nntplib
import nturl2path
- import opcode
import os2emxpath
- import pdb
- import posixfile
import pstats
import py_compile
- import rexec
- import sched
import sndhdr
- import statvfs
- import stringold
- import sunau
- import sunaudio
- import symbol
import tabnanny
- import timeit
- import toaiff
- import token
try:
import tty # not available on Windows
except ImportError:
- if test_support.verbose:
- print "skipping tty"
-
- # 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
- import webbrowser
- import xml
+ if support.verbose:
+ print("skipping tty")
def test_main():
- test_support.run_unittest(TestUntestedModules)
+ support.run_unittest(TestUntestedModules)
if __name__ == "__main__":
test_main()