Skip to content

Commit

Permalink
Update pythoneval-asyncio.test (python#11908)
Browse files Browse the repository at this point in the history
  • Loading branch information
sobolevn authored and tushar-deepsource committed Jan 20, 2022
1 parent 7563b86 commit 27e469b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test-data/unit/pythoneval-asyncio.test
Expand Up @@ -346,7 +346,7 @@ from typing import Generator, Any
import asyncio
from asyncio import Future

asyncio.coroutine
@asyncio.coroutine
def slow_operation(future: 'Future[int]') -> 'Generator[Any, None, None]':
yield from asyncio.sleep(1)
future.set_result('42') #Try to set an str as result to a Future[int]
Expand Down

0 comments on commit 27e469b

Please sign in to comment.