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.
1 parent 261902e commit 08423b0Copy full SHA for 08423b0
1 file changed
tests/conftest.py
@@ -9,14 +9,15 @@
9
import trio_asyncio
10
import inspect
11
12
+# Hacks for <3.7
13
if not hasattr(asyncio,'current_task'):
14
def current_task(loop=None):
15
return asyncio.Task.current_task(loop)
16
asyncio.current_task = current_task
17
18
if not hasattr(asyncio,'all_tasks'):
19
def all_tasks(loop=None):
- return asyncio.Task.all_tasks.task(loop)
20
+ return asyncio.Task.all_tasks(loop)
21
asyncio.all_tasks = all_tasks
22
23
@pytest.fixture
0 commit comments