From 8425de4147eb8d83befbb8ea77516fc764bb4309 Mon Sep 17 00:00:00 2001 From: Brett Cannon Date: Fri, 1 Jun 2018 20:34:09 -0700 Subject: bpo-33562: Check the global asyncio event loop policy isn't set after any tests (GH-7328) --- Lib/test/test_asyncio/test_selector_events.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Lib/test/test_asyncio/test_selector_events.py') diff --git a/Lib/test/test_asyncio/test_selector_events.py b/Lib/test/test_asyncio/test_selector_events.py index 68b6ee9abbf..d380aa4138f 100644 --- a/Lib/test/test_asyncio/test_selector_events.py +++ b/Lib/test/test_asyncio/test_selector_events.py @@ -22,6 +22,10 @@ from test.test_asyncio import utils as test_utils MOCK_ANY = mock.ANY +def tearDownModule(): + asyncio.set_event_loop_policy(None) + + class TestBaseSelectorEventLoop(BaseSelectorEventLoop): def _make_self_pipe(self): -- cgit v1.2.3