mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
bpo-31370: Remove support for threads-less builds (#3385)
* Remove Setup.config * Always define WITH_THREAD for compatibility.
This commit is contained in:
parent
1f06a680de
commit
a6a4dc816d
135 changed files with 2472 additions and 4377 deletions
|
@ -10,6 +10,7 @@ import xmlrpc.server
|
|||
import http.client
|
||||
import http, http.server
|
||||
import socket
|
||||
import threading
|
||||
import re
|
||||
import io
|
||||
import contextlib
|
||||
|
@ -19,10 +20,6 @@ try:
|
|||
import gzip
|
||||
except ImportError:
|
||||
gzip = None
|
||||
try:
|
||||
import threading
|
||||
except ImportError:
|
||||
threading = None
|
||||
|
||||
alist = [{'astring': 'foo@bar.baz.spam',
|
||||
'afloat': 7283.43,
|
||||
|
@ -307,7 +304,6 @@ class XMLRPCTestCase(unittest.TestCase):
|
|||
except OSError:
|
||||
self.assertTrue(has_ssl)
|
||||
|
||||
@unittest.skipUnless(threading, "Threading required for this test.")
|
||||
def test_keepalive_disconnect(self):
|
||||
class RequestHandler(http.server.BaseHTTPRequestHandler):
|
||||
protocol_version = "HTTP/1.1"
|
||||
|
@ -747,7 +743,6 @@ def make_request_and_skipIf(condition, reason):
|
|||
return make_request_and_skip
|
||||
return decorator
|
||||
|
||||
@unittest.skipUnless(threading, 'Threading required for this test.')
|
||||
class BaseServerTestCase(unittest.TestCase):
|
||||
requestHandler = None
|
||||
request_count = 1
|
||||
|
@ -1206,7 +1201,6 @@ class FailingMessageClass(http.client.HTTPMessage):
|
|||
return super().get(key, failobj)
|
||||
|
||||
|
||||
@unittest.skipUnless(threading, 'Threading required for this test.')
|
||||
class FailingServerTestCase(unittest.TestCase):
|
||||
def setUp(self):
|
||||
self.evt = threading.Event()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue