Closes #13140: Fix the daemon_threads attribute of ThreadingMixIn.

This commit is contained in:
Florent Xicluna 2011-11-04 10:16:28 +01:00
parent dcfde5aac9
commit 12b66b5217
3 changed files with 3 additions and 3 deletions

View File

@ -588,8 +588,7 @@ class ThreadingMixIn:
"""Start a new thread to process the request."""
t = threading.Thread(target = self.process_request_thread,
args = (request, client_address))
if self.daemon_threads:
t.daemon = True
t.daemon = self.daemon_threads
t.start()

View File

@ -123,7 +123,6 @@ class SocketServerTest(unittest.TestCase):
self.assertEqual(server.server_address, server.socket.getsockname())
return server
@unittest.skipUnless(threading, 'Threading required for this test.')
@reap_threads
def run_server(self, svrcls, hdlrbase, testfunc):
server = self.make_server(self.pickaddr(svrcls.address_family),

View File

@ -66,6 +66,8 @@ Core and Builtins
Library
-------
- Issue #13140: Fix the daemon_threads attribute of ThreadingMixIn.
- Issue #13339: Fix compile error in posixmodule.c due to missing semicolon.
Thanks to Robert Xiao.