diff options
Diffstat (limited to 'Lib/test/test_sundry.py')
| -rw-r--r-- | Lib/test/test_sundry.py | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/Lib/test/test_sundry.py b/Lib/test/test_sundry.py index 919fb84..07802d6 100644 --- a/Lib/test/test_sundry.py +++ b/Lib/test/test_sundry.py @@ -3,16 +3,13 @@ from test import support import sys import unittest -import warnings class TestUntestedModules(unittest.TestCase): def test_at_least_import_untested_modules(self): - with warnings.catch_warnings(): - warnings.simplefilter("ignore") + with support.check_warnings(quiet=True): import bdb import cgitb import code - import compileall import distutils.bcppcompiler import distutils.ccompiler @@ -49,29 +46,19 @@ class TestUntestedModules(unittest.TestCase): import html.entities import imghdr import keyword - import linecache import macurl2path import mailcap - import nntplib import nturl2path - import opcode import os2emxpath - import pdb import pstats import py_compile - import sched import sndhdr - import symbol import tabnanny - import timeit - import token try: import tty # not available on Windows except ImportError: if support.verbose: print("skipping tty") - import webbrowser - import xml def test_main(): |
