File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -835,8 +835,10 @@ def test_connect_ex_error(self):
835835 cert_reqs = ssl .CERT_REQUIRED ,
836836 ca_certs = SVN_PYTHON_ORG_ROOT_CERT )
837837 try :
838- self .assertEqual (errno .ECONNREFUSED ,
839- s .connect_ex (("svn.python.org" , 444 )))
838+ rc = s .connect_ex (("svn.python.org" , 444 ))
839+ # Issue #19919: Windows machines or VMs hosted on Windows
840+ # machines sometimes return EWOULDBLOCK.
841+ self .assertIn (rc , (errno .ECONNREFUSED , errno .EWOULDBLOCK ))
840842 finally :
841843 s .close ()
842844
Original file line number Diff line number Diff line change 149149Tests
150150-----
151151
152+ - Issue #19919: Fix flacky SSL test. connect_ex() sometimes returns
153+ EWOULDBLOCK on Windows or VMs hosted on Windows.
154+
152155- Issue #19912: Added tests for ntpath.splitunc().
153156
154157- Issue #19828: Fixed test_site when the whole suite is run with -S.
You can’t perform that action at this time.
0 commit comments