Skip to content

Commit e43bee7

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 72ce82a commit e43bee7

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
@@ -1075,6 +1075,7 @@ def test_create_unix_server_ssl_verified(self):
10751075
ssl=sslcontext_client,
10761076
server_hostname='localhost')
10771077
client, pr = self.loop.run_until_complete(f_c)
1078+
self.loop.run_until_complete(proto.connected)
10781079

10791080
# close connection
10801081
proto.transport.close()
@@ -1100,6 +1101,7 @@ def test_create_server_ssl_verified(self):
11001101
ssl=sslcontext_client,
11011102
server_hostname='localhost')
11021103
client, pr = self.loop.run_until_complete(f_c)
1104+
self.loop.run_until_complete(proto.connected)
11031105

11041106
# extra info is available
11051107
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)