diff options
author | Justin Turner Arthur <justinarthur@gmail.com> | 2020-10-20 01:18:57 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-20 01:18:57 (GMT) |
commit | de73d432bb29f6439f2db16cb991e15e09c70c26 (patch) | |
tree | 1ec47133fbdbd6890e4e20cc355b92f6d320fe67 /Lib | |
parent | 23c0fb8edd16fe6d796df2853a5369fd783e05b7 (diff) | |
download | cpython-de73d432bb29f6439f2db16cb991e15e09c70c26.zip cpython-de73d432bb29f6439f2db16cb991e15e09c70c26.tar.gz cpython-de73d432bb29f6439f2db16cb991e15e09c70c26.tar.bz2 |
bpo-38912: fix close before connect callback in test_asyncio SSL tests (GH-22691)
Reduces the rate at which the ENV CHANGED failure occurs in test_asyncio SSL tests (due to unclosed transport), but does not 100% resolve it.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_asyncio/test_events.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_asyncio/test_events.py b/Lib/test/test_asyncio/test_events.py index ef9d6fc..b8fe466 100644 --- a/Lib/test/test_asyncio/test_events.py +++ b/Lib/test/test_asyncio/test_events.py @@ -1076,6 +1076,7 @@ class EventLoopTestsMixin: ssl=sslcontext_client, server_hostname='localhost') client, pr = self.loop.run_until_complete(f_c) + self.loop.run_until_complete(proto.connected) # close connection proto.transport.close() @@ -1101,6 +1102,7 @@ class EventLoopTestsMixin: ssl=sslcontext_client, server_hostname='localhost') client, pr = self.loop.run_until_complete(f_c) + self.loop.run_until_complete(proto.connected) # extra info is available self.check_ssl_extra_info(client, peername=(host, port), |