gh-105987: unskip test_issue105987 from test_asyncio.test_eager_task_factory (#139538)

This commit is contained in:
Kumar Aditya
2025-10-03 12:48:57 +05:30
committed by GitHub
parent fd7dac0430
commit aa99a7c70c

View File

@@ -316,11 +316,9 @@ class CEagerTaskFactoryLoopTests(EagerTaskFactoryLoopTests, test_utils.TestCase)
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 CEagerTaskFactoryLoopTests(EagerTaskFactoryLoopTests, test_utils.TestCase)
pass
l = DummyLoop()
_set_running_loop(l)
_swap_current_task(l, DummyTask())
t = _swap_current_task(l, None)
"""