mirror of
https://github.com/python/cpython.git
synced 2025-09-01 06:28:36 +00:00
Issue #19919: Fix flacky SSL test. connect_ex() sometimes returns
EWOULDBLOCK on Windows or VMs hosted on Windows.
This commit is contained in:
commit
bd9cbb0691
2 changed files with 7 additions and 2 deletions
|
@ -1201,8 +1201,10 @@ class NetworkedTests(unittest.TestCase):
|
||||||
cert_reqs=ssl.CERT_REQUIRED,
|
cert_reqs=ssl.CERT_REQUIRED,
|
||||||
ca_certs=SVN_PYTHON_ORG_ROOT_CERT)
|
ca_certs=SVN_PYTHON_ORG_ROOT_CERT)
|
||||||
try:
|
try:
|
||||||
self.assertEqual(errno.ECONNREFUSED,
|
rc = s.connect_ex(("svn.python.org", 444))
|
||||||
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:
|
finally:
|
||||||
s.close()
|
s.close()
|
||||||
|
|
||||||
|
|
|
@ -192,6 +192,9 @@ IDLE
|
||||||
Tests
|
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 #19912: Added tests for ntpath.splitunc().
|
||||||
|
|
||||||
- Issue #19828: Fixed test_site when the whole suite is run with -S.
|
- Issue #19828: Fixed test_site when the whole suite is run with -S.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue