mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
Issue #28480: Merge multithreading fixes from 3.6
This commit is contained in:
commit
812f6e1f23
4 changed files with 8 additions and 2 deletions
|
@ -1,4 +1,3 @@
|
|||
import asyncio
|
||||
import inspect
|
||||
import sys
|
||||
import types
|
||||
|
@ -6,6 +5,9 @@ import unittest
|
|||
|
||||
from unittest import mock
|
||||
|
||||
from test.support import import_module
|
||||
asyncio = import_module("asyncio")
|
||||
|
||||
|
||||
class AwaitException(Exception):
|
||||
pass
|
||||
|
|
|
@ -4304,7 +4304,7 @@ class MiscTestCase(unittest.TestCase):
|
|||
'logProcesses', 'currentframe',
|
||||
'PercentStyle', 'StrFormatStyle', 'StringTemplateStyle',
|
||||
'Filterer', 'PlaceHolder', 'Manager', 'RootLogger',
|
||||
'root'}
|
||||
'root', 'threading'}
|
||||
support.check__all__(self, logging, blacklist=blacklist)
|
||||
|
||||
|
||||
|
|
|
@ -88,6 +88,9 @@ Core and Builtins
|
|||
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.
|
||||
|
||||
|
|
|
@ -664,6 +664,7 @@ internal_setblocking(PySocketSockObject *s, int block)
|
|||
result = 0;
|
||||
|
||||
done:
|
||||
; /* necessary for --without-threads flag */
|
||||
Py_END_ALLOW_THREADS
|
||||
|
||||
if (result) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue