Kaydet (Commit) 812f6e1f authored tarafından Martin Panter's avatar Martin Panter

Issue #28480: Merge multithreading fixes from 3.6

import asyncio
import inspect import inspect
import sys import sys
import types import types
...@@ -6,6 +5,9 @@ import unittest ...@@ -6,6 +5,9 @@ import unittest
from unittest import mock from unittest import mock
from test.support import import_module
asyncio = import_module("asyncio")
class AwaitException(Exception): class AwaitException(Exception):
pass pass
......
...@@ -4304,7 +4304,7 @@ class MiscTestCase(unittest.TestCase): ...@@ -4304,7 +4304,7 @@ class MiscTestCase(unittest.TestCase):
'logProcesses', 'currentframe', 'logProcesses', 'currentframe',
'PercentStyle', 'StrFormatStyle', 'StringTemplateStyle', 'PercentStyle', 'StrFormatStyle', 'StringTemplateStyle',
'Filterer', 'PlaceHolder', 'Manager', 'RootLogger', 'Filterer', 'PlaceHolder', 'Manager', 'RootLogger',
'root'} 'root', 'threading'}
support.check__all__(self, logging, blacklist=blacklist) support.check__all__(self, logging, blacklist=blacklist)
......
...@@ -88,6 +88,9 @@ Core and Builtins ...@@ -88,6 +88,9 @@ Core and Builtins
Library Library
------- -------
- Issue #28480: Fix error building socket module when multithreading is
disabled.
- Issue #28240: timeit: remove ``-c/--clock`` and ``-t/--time`` command line - Issue #28240: timeit: remove ``-c/--clock`` and ``-t/--time`` command line
options which were deprecated since Python 3.3. options which were deprecated since Python 3.3.
......
...@@ -664,6 +664,7 @@ internal_setblocking(PySocketSockObject *s, int block) ...@@ -664,6 +664,7 @@ internal_setblocking(PySocketSockObject *s, int block)
result = 0; result = 0;
done: done:
; /* necessary for --without-threads flag */
Py_END_ALLOW_THREADS Py_END_ALLOW_THREADS
if (result) { if (result) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment