mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
bpo-38107: Replace direct future and task contructor calls with factories in asyncio tests (GH-15928)
This commit is contained in:
parent
781266ebb6
commit
9aee90018a
13 changed files with 156 additions and 159 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue