changeset: 104578:948cf38793ce parent: 104574:1ce50f7027c1 parent: 104577:7cb86d404866 user: Martin Panter date: Thu Oct 20 05:25:14 2016 +0000 files: Misc/NEWS Modules/socketmodule.c description: Issue #28480: Merge multithreading fixes from 3.6 diff -r 1ce50f7027c1 -r 948cf38793ce Lib/test/test_asyncgen.py --- a/Lib/test/test_asyncgen.py Thu Oct 20 00:46:38 2016 +0200 +++ b/Lib/test/test_asyncgen.py Thu Oct 20 05:25:14 2016 +0000 @@ -1,4 +1,3 @@ -import asyncio import inspect import sys import types @@ -6,6 +5,9 @@ from unittest import mock +from test.support import import_module +asyncio = import_module("asyncio") + class AwaitException(Exception): pass diff -r 1ce50f7027c1 -r 948cf38793ce Lib/test/test_logging.py --- a/Lib/test/test_logging.py Thu Oct 20 00:46:38 2016 +0200 +++ b/Lib/test/test_logging.py Thu Oct 20 05:25:14 2016 +0000 @@ -4304,7 +4304,7 @@ 'logProcesses', 'currentframe', 'PercentStyle', 'StrFormatStyle', 'StringTemplateStyle', 'Filterer', 'PlaceHolder', 'Manager', 'RootLogger', - 'root'} + 'root', 'threading'} support.check__all__(self, logging, blacklist=blacklist) diff -r 1ce50f7027c1 -r 948cf38793ce Misc/NEWS --- a/Misc/NEWS Thu Oct 20 00:46:38 2016 +0200 +++ b/Misc/NEWS Thu Oct 20 05:25:14 2016 +0000 @@ -88,6 +88,9 @@ Library ------- +- Issue #28480: Fix error building socket module when multithreading is + disabled. + - Issue #28240: timeit: remove ``-c/--clock`` and ``-t/--time`` command line options which were deprecated since Python 3.3. diff -r 1ce50f7027c1 -r 948cf38793ce Modules/socketmodule.c --- a/Modules/socketmodule.c Thu Oct 20 00:46:38 2016 +0200 +++ b/Modules/socketmodule.c Thu Oct 20 05:25:14 2016 +0000 @@ -664,6 +664,7 @@ result = 0; done: + ; /* necessary for --without-threads flag */ Py_END_ALLOW_THREADS if (result) {