aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/test/test_asyncio/test_tasks.py
diff options
context:
space:
mode:
authorBrett Cannon <brettcannon@users.noreply.github.com>2018-06-01 20:34:09 -0700
committerGitHub <noreply@github.com>2018-06-01 20:34:09 -0700
commit8425de4147eb8d83befbb8ea77516fc764bb4309 (patch)
treee07959e28d2c69c12aabd580ecb35e7a968783d3 /Lib/test/test_asyncio/test_tasks.py
parentde6516264e793be991f692fdd892707afb9104a7 (diff)
downloadcpython-8425de4147eb8d83befbb8ea77516fc764bb4309.tar.gz
cpython-8425de4147eb8d83befbb8ea77516fc764bb4309.zip
bpo-33562: Check the global asyncio event loop policy isn't set after any tests (GH-7328)
Diffstat (limited to 'Lib/test/test_asyncio/test_tasks.py')
-rw-r--r--Lib/test/test_asyncio/test_tasks.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_asyncio/test_tasks.py b/Lib/test/test_asyncio/test_tasks.py
index d95c98f0a61..1c1a0ac01f5 100644
--- a/Lib/test/test_asyncio/test_tasks.py
+++ b/Lib/test/test_asyncio/test_tasks.py
@@ -24,6 +24,10 @@ from test import support
from test.support.script_helper import assert_python_ok
+def tearDownModule():
+ asyncio.set_event_loop_policy(None)
+
+
@asyncio.coroutine
def coroutine_function():
pass