From 14a99f47ab9042ee26f43b4ef91f15d3eebbc407 Mon Sep 17 00:00:00 2001 From: Broque Thomas <26755000+Nezreka@users.noreply.github.com> Date: Sat, 16 May 2026 12:48:36 -0700 Subject: [PATCH] fix(tests): use asyncio.run() instead of get_event_loop() in amazon test helper MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit get_event_loop() raises RuntimeError on Python 3.11+ Linux when no loop exists. asyncio.run() creates its own loop per call — no deprecation warning, works across all supported Python versions. --- tests/tools/test_amazon_download_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/tools/test_amazon_download_client.py b/tests/tools/test_amazon_download_client.py index d3a77d3a..f831f268 100644 --- a/tests/tools/test_amazon_download_client.py +++ b/tests/tools/test_amazon_download_client.py @@ -39,7 +39,7 @@ from core.download_plugins.types import AlbumResult, DownloadStatus, TrackResult # --------------------------------------------------------------------------- def run(coro): - return asyncio.get_event_loop().run_until_complete(coro) + return asyncio.run(coro) def _stream_info(