Skip to content

Commit 08423b0

Browse files
committed
stupid typo ²
1 parent 261902e commit 08423b0

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/conftest.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,15 @@
99
import trio_asyncio
1010
import inspect
1111

12+
# Hacks for <3.7
1213
if not hasattr(asyncio,'current_task'):
1314
def current_task(loop=None):
1415
return asyncio.Task.current_task(loop)
1516
asyncio.current_task = current_task
1617

1718
if not hasattr(asyncio,'all_tasks'):
1819
def all_tasks(loop=None):
19-
return asyncio.Task.all_tasks.task(loop)
20+
return asyncio.Task.all_tasks(loop)
2021
asyncio.all_tasks = all_tasks
2122

2223
@pytest.fixture

0 commit comments

Comments
 (0)