Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit af52044

Browse filesBrowse files
Clear the default event loop policy if it might have been set.
1 parent 6d93690 commit af52044
Copy full SHA for af52044

File tree

1 file changed

+3
-0
lines changed
Filter options

1 file changed

+3
-0
lines changed

‎Lib/test/test_concurrent_futures/test_interpreter_pool.py

Copy file name to clipboardExpand all lines: Lib/test/test_concurrent_futures/test_interpreter_pool.py
+3Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,9 @@ def setUp(self):
290290
self.executor = self.executor_type()
291291
self.addCleanup(lambda: self.executor.shutdown())
292292

293+
if support.maybe_get_event_loop_policy() is None:
294+
self.addCleanup(lambda: asyncio.set_event_loop_policy(None))
295+
293296
def tearDown(self):
294297
if not self.loop.is_closed():
295298
testasyncio_utils.run_briefly(self.loop)

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.