Skip to content

Commit 69a4d57

Browse files
committed
Fix DeprecationWarning by avoiding coroutine decorator
1 parent a575d53 commit 69a4d57

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/aiotest/test_callback.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,7 @@ async def test_close(self, loop, config):
4545
await loop.stop().wait()
4646
loop.close()
4747

48-
@config.asyncio.coroutine
49-
def test():
48+
async def test():
5049
pass
5150

5251
func = lambda: False

0 commit comments

Comments
 (0)