From 443804c2926e60519ef9f2a32418740165a6ba2a Mon Sep 17 00:00:00 2001 From: Nick Tarleton Date: Mon, 30 Sep 2024 14:25:22 -0700 Subject: [PATCH] Use asyncio.run in test to avoid a DeprecationWarning from get_event_loop() --- tests/refresh_all_apis.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/refresh_all_apis.py b/tests/refresh_all_apis.py index 74446cc..87e3ddd 100755 --- a/tests/refresh_all_apis.py +++ b/tests/refresh_all_apis.py @@ -60,4 +60,4 @@ async def refresh_disc_docs_json(): if __name__ == "__main__": - asyncio.get_event_loop().run_until_complete(refresh_disc_docs_json()) + asyncio.run(refresh_disc_docs_json())