mirror of https://github.com/python/cpython
Restore alphabetic order. Also try to import rlcompleter and curses, but
don't fail if they're not available.
This commit is contained in:
parent
1e33bdcb76
commit
f87d857080
|
@ -1,5 +1,7 @@
|
||||||
"""Do a minimal test of all the modules that aren't otherwise tested."""
|
"""Do a minimal test of all the modules that aren't otherwise tested."""
|
||||||
|
|
||||||
|
from test_support import verbose
|
||||||
|
|
||||||
import BaseHTTPServer
|
import BaseHTTPServer
|
||||||
import CGIHTTPServer
|
import CGIHTTPServer
|
||||||
import Queue
|
import Queue
|
||||||
|
@ -17,7 +19,11 @@ import codeop
|
||||||
import colorsys
|
import colorsys
|
||||||
import commands
|
import commands
|
||||||
import compileall
|
import compileall
|
||||||
#import curses
|
try:
|
||||||
|
import curses # not available on Windows
|
||||||
|
except ImportError:
|
||||||
|
if verbose:
|
||||||
|
print "skipping curses"
|
||||||
import dbhash
|
import dbhash
|
||||||
import dircache
|
import dircache
|
||||||
import dis
|
import dis
|
||||||
|
@ -64,7 +70,11 @@ import py_compile
|
||||||
import pyclbr
|
import pyclbr
|
||||||
#import reconvert
|
#import reconvert
|
||||||
import repr
|
import repr
|
||||||
#import rlcompleter
|
try:
|
||||||
|
import rlcompleter # not available on Windows
|
||||||
|
except ImportError:
|
||||||
|
if verbose:
|
||||||
|
print "skipping rlcompleter"
|
||||||
import robotparser
|
import robotparser
|
||||||
import sched
|
import sched
|
||||||
import sgmllib
|
import sgmllib
|
||||||
|
@ -85,13 +95,11 @@ import test
|
||||||
import toaiff
|
import toaiff
|
||||||
#import tzparse
|
#import tzparse
|
||||||
import urllib2
|
import urllib2
|
||||||
|
# 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 uu
|
import uu
|
||||||
import webbrowser
|
import webbrowser
|
||||||
import whichdb
|
import whichdb
|
||||||
import xdrlib
|
import xdrlib
|
||||||
import xml
|
import xml
|
||||||
|
|
||||||
# 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
|
|
||||||
|
|
Loading…
Reference in New Issue