mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Fix test_httplib when built without threads
This commit is contained in:
parent
db1bad2d70
commit
66c95c745b
1 changed files with 1 additions and 1 deletions
|
@ -3,13 +3,13 @@ import sys
|
||||||
import ssl
|
import ssl
|
||||||
import pprint
|
import pprint
|
||||||
import socket
|
import socket
|
||||||
import threading
|
|
||||||
import urllib.parse
|
import urllib.parse
|
||||||
# Rename HTTPServer to _HTTPServer so as to avoid confusion with HTTPSServer.
|
# Rename HTTPServer to _HTTPServer so as to avoid confusion with HTTPSServer.
|
||||||
from http.server import (HTTPServer as _HTTPServer,
|
from http.server import (HTTPServer as _HTTPServer,
|
||||||
SimpleHTTPRequestHandler, BaseHTTPRequestHandler)
|
SimpleHTTPRequestHandler, BaseHTTPRequestHandler)
|
||||||
|
|
||||||
from test import support
|
from test import support
|
||||||
|
threading = support.import_module("threading")
|
||||||
|
|
||||||
here = os.path.dirname(__file__)
|
here = os.path.dirname(__file__)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue