summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_asyncio/test_unix_events.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_unix_events.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_unix_events.py')
-rw-r--r--Lib/test/test_asyncio/test_unix_events.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_asyncio/test_unix_events.py b/Lib/test/test_asyncio/test_unix_events.py
index 1daa870..02ce7e8 100644
--- a/Lib/test/test_asyncio/test_unix_events.py
+++ b/Lib/test/test_asyncio/test_unix_events.py
@@ -669,7 +669,7 @@ class UnixReadPipeTransportTests(test_utils.TestCase):
return transport
def test_ctor(self):
- waiter = asyncio.Future(loop=self.loop)
+ waiter = self.loop.create_future()
tr = self.read_pipe_transport(waiter=waiter)
self.loop.run_until_complete(waiter)
@@ -819,7 +819,7 @@ class UnixWritePipeTransportTests(test_utils.TestCase):
return transport
def test_ctor(self):
- waiter = asyncio.Future(loop=self.loop)
+ waiter = self.loop.create_future()
tr = self.write_pipe_transport(waiter=waiter)
self.loop.run_until_complete(waiter)