]> granicus.if.org Git - python/commitdiff
Fix test_httplib when built without threads
authorAntoine Pitrou <solipsis@pitrou.net>
Fri, 5 Nov 2010 20:17:55 +0000 (20:17 +0000)
committerAntoine Pitrou <solipsis@pitrou.net>
Fri, 5 Nov 2010 20:17:55 +0000 (20:17 +0000)
Lib/test/ssl_servers.py

index 14d6aeb6284b2fb9e9ee7d6411cdeb3cd7f80a27..da27c3a012682185a91572f5f384fc8bfb7e0925 100644 (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__)