Skip to content

Commit de73d43

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.
1 parent 23c0fb8 commit de73d43

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

Lib/test/test_asyncio/test_events.py

+2
Original file line numberDiff line numberDiff line change
@@ -1076,6 +1076,7 @@ def test_create_unix_server_ssl_verified(self):
10761076
ssl=sslcontext_client,
10771077
server_hostname='localhost')
10781078
client, pr = self.loop.run_until_complete(f_c)
1079+
self.loop.run_until_complete(proto.connected)
10791080

10801081
# close connection
10811082
proto.transport.close()
@@ -1101,6 +1102,7 @@ def test_create_server_ssl_verified(self):
11011102
ssl=sslcontext_client,
11021103
server_hostname='localhost')
11031104
client, pr = self.loop.run_until_complete(f_c)
1105+
self.loop.run_until_complete(proto.connected)
11041106

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

Misc/ACKS

+1
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ Alexandru Ardelean
7070
Emmanuel Arias
7171
Alicia Arlen
7272
Jeffrey Armstrong
73+
Justin Turner Arthur
7374
Jason Asbahr
7475
David Ascher
7576
Ammar Askar

0 commit comments

Comments
 (0)