Skip to content

Commit ab6c99a

Browse files
committed
uses Task.get_coro()
1 parent f5e778a commit ab6c99a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

services/web/server/tests/integration/01/test_project_workflow.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ async def test_workflow(
273273
# TODO: 'async_generator_asend' has no __name__ attr. Python 3.8 gets coros names
274274
# Expects "delete_project" coros to have __name__ attrs
275275
# pylint: disable=protected-access
276-
if "delete_project" in getattr(task._coro, "__name__", ""):
276+
if "delete_project" in getattr(task.get_coro(), "__name__", ""):
277277
await asyncio.wait_for(task, timeout=60.0)
278278

279279
# list empty

0 commit comments

Comments
 (0)