summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_asyncio/test_pep492.py
diff options
context:
space:
mode:
authorAndrew Svetlov <andrew.svetlov@gmail.com>2019-09-11 13:07:37 (GMT)
committerGitHub <noreply@github.com>2019-09-11 13:07:37 (GMT)
commit9aee90018a5213e3529768e0b873955d23f5e50b (patch)
tree36f9368f08981adac902adcbedd3223f6533c4c2 /Lib/test/test_asyncio/test_pep492.py
parent781266ebb60e7ac781a3e07030d92275721ff3cf (diff)
downloadcpython-9aee90018a5213e3529768e0b873955d23f5e50b.zip
cpython-9aee90018a5213e3529768e0b873955d23f5e50b.tar.gz
cpython-9aee90018a5213e3529768e0b873955d23f5e50b.tar.bz2
bpo-38107: Replace direct future and task contructor calls with factories in asyncio tests (GH-15928)
Diffstat (limited to 'Lib/test/test_asyncio/test_pep492.py')
-rw-r--r--Lib/test/test_asyncio/test_pep492.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_asyncio/test_pep492.py b/Lib/test/test_asyncio/test_pep492.py
index dfb68b8..58a6094 100644
--- a/Lib/test/test_asyncio/test_pep492.py
+++ b/Lib/test/test_asyncio/test_pep492.py
@@ -206,7 +206,7 @@ class CoroutineTests(BaseTest):
async def runner():
coro = afunc()
- t = asyncio.Task(coro, loop=self.loop)
+ t = self.loop.create_task(coro)
try:
await asyncio.sleep(0)
await coro