Skip to content

Commit 3faef63

Browse files
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. (cherry picked from commit de73d43) Co-authored-by: Justin Turner Arthur <[email protected]>
1 parent 371146a commit 3faef63

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

Lib/test/test_asyncio/test_events.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1071,6 +1071,7 @@ def test_create_unix_server_ssl_verified(self):
10711071
ssl=sslcontext_client,
10721072
server_hostname='localhost')
10731073
client, pr = self.loop.run_until_complete(f_c)
1074+
self.loop.run_until_complete(proto.connected)
10741075

10751076
# close connection
10761077
proto.transport.close()
@@ -1096,6 +1097,7 @@ def test_create_server_ssl_verified(self):
10961097
ssl=sslcontext_client,
10971098
server_hostname='localhost')
10981099
client, pr = self.loop.run_until_complete(f_c)
1100+
self.loop.run_until_complete(proto.connected)
10991101

11001102
# extra info is available
11011103
self.check_ssl_extra_info(client, peername=(host, port),

Misc/ACKS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ Alexandru Ardelean
6767
Emmanuel Arias
6868
Alicia Arlen
6969
Jeffrey Armstrong
70+
Justin Turner Arthur
7071
Jason Asbahr
7172
David Ascher
7273
Ammar Askar

0 commit comments

Comments
 (0)