summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYury Selivanov <yselivanov@sprymix.com>2015-05-11 18:40:56 (GMT)
committerYury Selivanov <yselivanov@sprymix.com>2015-05-11 18:40:56 (GMT)
commit7a093d9c71b86a19832a3067b6a4e56ba7963ebf (patch)
tree6a9b29dde8d3e7f34d14cfc5f1b723703839d669
parent90ecfe65e681f6e7f901a101ad1e549e339ea10d (diff)
parent740169cd24fc108913e4480e98e608f0517a7b8a (diff)
downloadcpython-7a093d9c71b86a19832a3067b6a4e56ba7963ebf.zip
cpython-7a093d9c71b86a19832a3067b6a4e56ba7963ebf.tar.gz
cpython-7a093d9c71b86a19832a3067b6a4e56ba7963ebf.tar.bz2
Merge 3.4 (asyncio)
-rw-r--r--Lib/test/test_asyncio/test_base_events.py9
-rw-r--r--Lib/test/test_asyncio/test_tasks.py9
-rw-r--r--Misc/NEWS2
3 files changed, 16 insertions, 4 deletions
diff --git a/Lib/test/test_asyncio/test_base_events.py b/Lib/test/test_asyncio/test_base_events.py
index aaa8e67..fd864ce 100644
--- a/Lib/test/test_asyncio/test_base_events.py
+++ b/Lib/test/test_asyncio/test_base_events.py
@@ -16,10 +16,15 @@ from asyncio import constants
from asyncio import test_utils
try:
from test import support
- from test.support.script_helper import assert_python_ok
except ImportError:
from asyncio import test_support as support
- from asyncio.test_support import assert_python_ok
+try:
+ from test.support.script_helper import assert_python_ok
+except ImportError:
+ try:
+ from test.script_helper import assert_python_ok
+ except ImportError:
+ from asyncio.test_support import assert_python_ok
MOCK_ANY = mock.ANY
diff --git a/Lib/test/test_asyncio/test_tasks.py b/Lib/test/test_asyncio/test_tasks.py
index e47a668..5b49e76 100644
--- a/Lib/test/test_asyncio/test_tasks.py
+++ b/Lib/test/test_asyncio/test_tasks.py
@@ -15,10 +15,15 @@ from asyncio import coroutines
from asyncio import test_utils
try:
from test import support
- from test.support.script_helper import assert_python_ok
except ImportError:
from asyncio import test_support as support
- from asyncio.test_support import assert_python_ok
+try:
+ from test.support.script_helper import assert_python_ok
+except ImportError:
+ try:
+ from test.script_helper import assert_python_ok
+ except ImportError:
+ from asyncio.test_support import assert_python_ok
PY34 = (sys.version_info >= (3, 4))
diff --git a/Misc/NEWS b/Misc/NEWS
index c8f66bb..76ebe1e 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -154,6 +154,8 @@ Core and Builtins
- Issue #21354: PyCFunction_New function is exposed by python DLL again.
+- asyncio: New event loop APIs: set_task_factory() and get_task_factory()
+
Library
-------