Commit bd9cbb06 authored by Christian Heimes's avatar Christian Heimes

Issue #19919: Fix flacky SSL test. connect_ex() sometimes returns

EWOULDBLOCK on Windows or VMs hosted on Windows.
parents 0048c98f de570748
......@@ -1201,8 +1201,10 @@ class NetworkedTests(unittest.TestCase):
cert_reqs=ssl.CERT_REQUIRED,
ca_certs=SVN_PYTHON_ORG_ROOT_CERT)
try:
self.assertEqual(errno.ECONNREFUSED,
s.connect_ex(("svn.python.org", 444)))
rc = s.connect_ex(("svn.python.org", 444))
# Issue #19919: Windows machines or VMs hosted on Windows
# machines sometimes return EWOULDBLOCK.
self.assertIn(rc, (errno.ECONNREFUSED, errno.EWOULDBLOCK))
finally:
s.close()
......
......@@ -192,6 +192,9 @@ IDLE
Tests
-----
- Issue #19919: Fix flacky SSL test. connect_ex() sometimes returns
EWOULDBLOCK on Windows or VMs hosted on Windows.
- Issue #19912: Added tests for ntpath.splitunc().
- Issue #19828: Fixed test_site when the whole suite is run with -S.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment