aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/test/test_coroutines.py
diff options
context:
space:
mode:
authorYury Selivanov <yselivanov@sprymix.com>2015-05-12 11:43:35 -0400
committerYury Selivanov <yselivanov@sprymix.com>2015-05-12 11:43:35 -0400
commit08a7a4e5926392e2d7247bb3536032dc48781280 (patch)
tree429f544a57565fdb96ab6e7a8f3a4b98592ed9c2 /Lib/test/test_coroutines.py
parentbaa2e562ce830d71440a77ab8865cae4763e89c1 (diff)
parente8944cb217747ccf32073aa284dc28ffd1f8dd55 (diff)
downloadcpython-08a7a4e5926392e2d7247bb3536032dc48781280.tar.gz
cpython-08a7a4e5926392e2d7247bb3536032dc48781280.zip
asyncio: Make sure sys.set_coroutine_wrapper is called *only* when loop is running.
Previous approach of installing coroutine wrapper in loop.set_debug() and uninstalling it in loop.close() was very fragile. Most of asyncio tests do not call loop.close() at all. Since coroutine wrapper is a global setting, we have to make sure that it's only set when the loop is running, and is automatically unset when it stops running. Issue #24017.
Diffstat (limited to 'Lib/test/test_coroutines.py')
0 files changed, 0 insertions, 0 deletions