From 994b4e7fc5370c6ae7eeb749204b95ff833a003b Mon Sep 17 00:00:00 2001 From: Andrey Rakhmatullin Date: Sat, 20 Jun 2026 00:17:50 +0500 Subject: [PATCH] Close the event loop in test_custom_asyncio_loop_enabled_false(). --- tests/test_command_runspider.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/test_command_runspider.py b/tests/test_command_runspider.py index b1455611e..9dabbc942 100644 --- a/tests/test_command_runspider.py +++ b/tests/test_command_runspider.py @@ -212,6 +212,7 @@ class MySpider(scrapy.Spider): f"Using asyncio event loop: {loop.__module__}.{loop.__class__.__name__}" in log ) + loop.close() def test_no_reactor(self, tmp_path: Path) -> None: log = self.get_log(