]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.14] gh-105987: unskip `test_issue105987` from `test_asyncio.test_eager_task_factor...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 3 Oct 2025 20:21:28 +0000 (22:21 +0200)
committerGitHub <noreply@github.com>
Fri, 3 Oct 2025 20:21:28 +0000 (23:21 +0300)
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
Lib/test/test_asyncio/test_eager_task_factory.py

index da79ee9260a0e39f77bbfbe9a204750b3996cb0f..0561b54a3f19c66d0a7fe2359cb6b2b2ed9ad529 100644 (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)
         """