Fix test_httplib when built without threads

This commit is contained in:
Antoine Pitrou 2010-11-05 20:17:55 +00:00
parent db1bad2d70
commit 66c95c745b

View File

@ -3,13 +3,13 @@ import sys
import ssl
import pprint
import socket
import threading
import urllib.parse
# Rename HTTPServer to _HTTPServer so as to avoid confusion with HTTPSServer.
from http.server import (HTTPServer as _HTTPServer,
SimpleHTTPRequestHandler, BaseHTTPRequestHandler)
from test import support
threading = support.import_module("threading")
here = os.path.dirname(__file__)