diff options
author | Yury Selivanov <yury@magic.io> | 2018-05-28 14:31:28 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-28 14:31:28 -0400 |
commit | dbf102271fcc316f353c7e0a283811b661d128f2 (patch) | |
tree | 8807a0305490616dc3b480fae5e50e98c80b4fa8 /Lib/test/test_asyncio/test_buffered_proto.py | |
parent | e549c4be5fb010f5faf12236af8faa720a1429be (diff) | |
download | cpython-dbf102271fcc316f353c7e0a283811b661d128f2.tar.gz cpython-dbf102271fcc316f353c7e0a283811b661d128f2.zip |
bpo-33654: Support BufferedProtocol in set_protocol() and start_tls() (GH-7130)
In this commit:
* Support BufferedProtocol in set_protocol() and start_tls()
* Fix proactor to cancel readers reliably
* Update tests to be compatible with OpenSSL 1.1.1
* Clarify BufferedProtocol docs
* Bump TLS tests timeouts to 60 seconds; eliminate possible race from start_serving
* Rewrite test_start_tls_server_1
Diffstat (limited to 'Lib/test/test_asyncio/test_buffered_proto.py')
-rw-r--r-- | Lib/test/test_asyncio/test_buffered_proto.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_asyncio/test_buffered_proto.py b/Lib/test/test_asyncio/test_buffered_proto.py index 22f9269e814..89d3df72d98 100644 --- a/Lib/test/test_asyncio/test_buffered_proto.py +++ b/Lib/test/test_asyncio/test_buffered_proto.py @@ -9,7 +9,7 @@ class ReceiveStuffProto(asyncio.BufferedProtocol): self.cb = cb self.con_lost_fut = con_lost_fut - def get_buffer(self): + def get_buffer(self, sizehint): self.buffer = bytearray(100) return self.buffer |