https://github.com/python/cpython/commit/a73fc979cd422c7689ea77dd02801d71ac36061e
commit: a73fc979cd422c7689ea77dd02801d71ac36061e
branch: 3.14
author: Miss Islington (bot) <[email protected]>
committer: hugovk <[email protected]>
date: 2025-10-03T23:21:28+03:00
summary:

[3.14] gh-105987: unskip `test_issue105987` from 
`test_asyncio.test_eager_task_factory` (GH-139538) (#139539)

Co-authored-by: Kumar Aditya <[email protected]>

files:
M Lib/test/test_asyncio/test_eager_task_factory.py

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)
         """

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to