Skip to content

Commit 955cb1f

Browse files
committed
Fix asyncio.get_running_loop() monkey-patching (python-trio#83)
1 parent 1ed96e5 commit 955cb1f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: trio_asyncio/_loop.py

+2
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,8 @@ def _new_run_get_or_throw():
251251

252252
_aio_event._get_running_loop = _new_run_get
253253
_aio_event.get_running_loop = _new_run_get_or_throw
254+
asyncio._get_running_loop = _new_run_get
255+
asyncio.get_running_loop = _new_run_get_or_throw
254256

255257
#####
256258

0 commit comments

Comments
 (0)