diff options
| author | Andrew Svetlov <andrew.svetlov@gmail.com> | 2019-09-11 13:07:37 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-09-11 13:07:37 (GMT) |
| commit | 9aee90018a5213e3529768e0b873955d23f5e50b (patch) | |
| tree | 36f9368f08981adac902adcbedd3223f6533c4c2 /Lib/test/test_asyncio/test_sock_lowlevel.py | |
| parent | 781266ebb60e7ac781a3e07030d92275721ff3cf (diff) | |
| download | cpython-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_sock_lowlevel.py')
| -rw-r--r-- | Lib/test/test_asyncio/test_sock_lowlevel.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_asyncio/test_sock_lowlevel.py b/Lib/test/test_asyncio/test_sock_lowlevel.py index 7b40a76..89c2af9 100644 --- a/Lib/test/test_asyncio/test_sock_lowlevel.py +++ b/Lib/test/test_asyncio/test_sock_lowlevel.py @@ -16,8 +16,8 @@ class MyProto(asyncio.Protocol): self.state = 'INITIAL' self.nbytes = 0 if loop is not None: - self.connected = asyncio.Future(loop=loop) - self.done = asyncio.Future(loop=loop) + self.connected = loop.create_future() + self.done = loop.create_future() def connection_made(self, transport): self.transport = transport |
