[Python-checkins] cpython (merge 3.2 -> default): Merge 3.2: issue #13140
florent.xicluna
python-checkins at python.org
Fri Nov 4 10:23:30 CET 2011
http://hg.python.org/cpython/rev/6fe6769e54a5
changeset: 73349:6fe6769e54a5
parent: 73346:5f49b496d161
parent: 73348:94017ce9304d
user: Florent Xicluna <florent.xicluna at gmail.com>
date: Fri Nov 04 10:22:57 2011 +0100
summary:
Merge 3.2: issue #13140
files:
Lib/socketserver.py | 3 +--
Lib/test/test_socketserver.py | 1 -
Misc/NEWS | 2 ++
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/Lib/socketserver.py b/Lib/socketserver.py
--- a/Lib/socketserver.py
+++ b/Lib/socketserver.py
@@ -606,8 +606,7 @@
"""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()
diff --git a/Lib/test/test_socketserver.py b/Lib/test/test_socketserver.py
--- a/Lib/test/test_socketserver.py
+++ b/Lib/test/test_socketserver.py
@@ -123,7 +123,6 @@
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),
diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -350,6 +350,8 @@
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.
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list