[Python-checkins] r86218 - python/branches/py3k/Lib/test/ssl_servers.py

antoine.pitrou python-checkins at python.org
Fri Nov 5 21:17:55 CET 2010


Author: antoine.pitrou
Date: Fri Nov  5 21:17:55 2010
New Revision: 86218

Log:
Fix test_httplib when built without threads



Modified:
   python/branches/py3k/Lib/test/ssl_servers.py

Modified: python/branches/py3k/Lib/test/ssl_servers.py
==============================================================================
--- python/branches/py3k/Lib/test/ssl_servers.py	(original)
+++ python/branches/py3k/Lib/test/ssl_servers.py	Fri Nov  5 21:17:55 2010
@@ -3,13 +3,13 @@
 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__)
 


More information about the Python-checkins mailing list