Skip to content

Commit 8de1197

Browse files
author
Andrew J Westlake
committed
Got tests working with get_running_loop to ensure that the semantics are correct, changing back to get_event_loop for compatibility with Python <3.7
1 parent f47b8f8 commit 8de1197

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ fn asyncio_get_event_loop(py: Python) -> PyResult<&PyAny> {
264264
pub fn get_running_loop(py: Python) -> PyResult<&PyAny> {
265265
// Ideally should call get_running_loop, but calls get_event_loop for compatibility between
266266
// versions.
267-
asyncio(py)?.call_method0("get_running_loop")
267+
asyncio(py)?.call_method0("get_event_loop")
268268
}
269269

270270
/// Get a reference to the Python event loop cached by `try_init` (0.13 behaviour)

0 commit comments

Comments
 (0)