Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add comment & simplify
  • Loading branch information
kumaraditya303 authored Aug 15, 2022
commit bf77bb67d8d5f1778111ab38fd4ec8a921a45ed1
3 changes: 2 additions & 1 deletion Lib/unittest/async_case.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,8 @@ def _setupAsyncioRunner(self):
assert self._asyncioRunner is None, 'asyncio runner is already initialized'
runner = asyncio.Runner(debug=True)
self._asyncioRunner = runner
asyncio.set_event_loop(runner.get_loop())
# Force loop to be initialized
Comment thread
kumaraditya303 marked this conversation as resolved.
Outdated
runner.get_loop()
Comment thread
kumaraditya303 marked this conversation as resolved.

def _tearDownAsyncioRunner(self):
runner = self._asyncioRunner
Expand Down