We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
test_issue105987
test_asyncio.test_eager_task_factory
1 parent 292b6cf commit a73fc97Copy full SHA for a73fc97
Lib/test/test_asyncio/test_eager_task_factory.py
@@ -316,11 +316,9 @@ def tearDown(self):
316
asyncio.all_tasks = asyncio.tasks.all_tasks = self._all_tasks
317
return super().tearDown()
318
319
-
320
- @unittest.skip("skip")
321
def test_issue105987(self):
322
code = """if 1:
323
- from _asyncio import _swap_current_task
+ from _asyncio import _swap_current_task, _set_running_loop
324
325
class DummyTask:
326
pass
@@ -329,6 +327,7 @@ class DummyLoop:
329
327
330
328
331
l = DummyLoop()
+ _set_running_loop(l)
332
_swap_current_task(l, DummyTask())
333
t = _swap_current_task(l, None)
334
"""
0 commit comments