Skip to content

Commit

Permalink
Fix asyncio.get_running_loop() monkey-patching (python-trio#83)
Browse files Browse the repository at this point in the history
  • Loading branch information
niklasf committed Jan 5, 2021
1 parent 1ed96e5 commit 955cb1f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions trio_asyncio/_loop.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,8 @@ def _new_run_get_or_throw():

_aio_event._get_running_loop = _new_run_get
_aio_event.get_running_loop = _new_run_get_or_throw
asyncio._get_running_loop = _new_run_get
asyncio.get_running_loop = _new_run_get_or_throw

#####

Expand Down

0 comments on commit 955cb1f

Please sign in to comment.