From: Antoine Pitrou Date: Fri, 5 Nov 2010 20:17:55 +0000 (+0000) Subject: Fix test_httplib when built without threads X-Git-Tag: v3.2a4~125 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=66c95c745b723badac4513d2ac4492eb08ef1b66;p=python Fix test_httplib when built without threads --- diff --git a/Lib/test/ssl_servers.py b/Lib/test/ssl_servers.py index 14d6aeb628..da27c3a012 100644 --- a/Lib/test/ssl_servers.py +++ b/Lib/test/ssl_servers.py @@ -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__)