From 71c154638dfb3bfa29d785cc88283774fcb62adc Mon Sep 17 00:00:00 2001 From: Kumar Aditya Date: Fri, 3 Oct 2025 12:48:57 +0530 Subject: [PATCH] gh-105987: unskip `test_issue105987` from `test_asyncio.test_eager_task_factory` (GH-139538) (cherry picked from commit aa99a7c70c1d07717fff37133d5cc08e569d9c62) Co-authored-by: Kumar Aditya --- Lib/test/test_asyncio/test_eager_task_factory.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Lib/test/test_asyncio/test_eager_task_factory.py b/Lib/test/test_asyncio/test_eager_task_factory.py index da79ee9260a0e3..0561b54a3f19c6 100644 --- a/Lib/test/test_asyncio/test_eager_task_factory.py +++ b/Lib/test/test_asyncio/test_eager_task_factory.py @@ -316,11 +316,9 @@ def tearDown(self): asyncio.all_tasks = asyncio.tasks.all_tasks = self._all_tasks return super().tearDown() - - @unittest.skip("skip") def test_issue105987(self): code = """if 1: - from _asyncio import _swap_current_task + from _asyncio import _swap_current_task, _set_running_loop class DummyTask: pass @@ -329,6 +327,7 @@ class DummyLoop: pass l = DummyLoop() + _set_running_loop(l) _swap_current_task(l, DummyTask()) t = _swap_current_task(l, None) """