Skip to content

Commit a73fc97

Browse files
[3.14] gh-105987: unskip test_issue105987 from test_asyncio.test_eager_task_factory (GH-139538) (#139539)
Co-authored-by: Kumar Aditya <[email protected]>
1 parent 292b6cf commit a73fc97

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Lib/test/test_asyncio/test_eager_task_factory.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -316,11 +316,9 @@ def tearDown(self):
316316
asyncio.all_tasks = asyncio.tasks.all_tasks = self._all_tasks
317317
return super().tearDown()
318318

319-
320-
@unittest.skip("skip")
321319
def test_issue105987(self):
322320
code = """if 1:
323-
from _asyncio import _swap_current_task
321+
from _asyncio import _swap_current_task, _set_running_loop
324322
325323
class DummyTask:
326324
pass
@@ -329,6 +327,7 @@ class DummyLoop:
329327
pass
330328
331329
l = DummyLoop()
330+
_set_running_loop(l)
332331
_swap_current_task(l, DummyTask())
333332
t = _swap_current_task(l, None)
334333
"""

0 commit comments

Comments
 (0)