File tree Expand file tree Collapse file tree 3 files changed +30
-0
lines changed Expand file tree Collapse file tree 3 files changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -38,4 +38,14 @@ if [ "$(uname -s)" = "Darwin" ]; then
3838 fi
3939fi
4040
41+ if [ -w /etc/hosts ]; then
42+ SUDO=" "
43+ else
44+ SUDO=" sudo"
45+ fi
46+
47+ # Add 'server' and 'hostname_not_in_cert' as a hostnames
48+ echo " 127.0.0.1 server" | $SUDO tee -a /etc/hosts
49+ echo " 127.0.0.1 hostname_not_in_cert" | $SUDO tee -a /etc/hosts
50+
4151echo " Setting up system... done."
Original file line number Diff line number Diff line change @@ -304,8 +304,13 @@ async def test_cert_ssl_uri_support(self):
304304 client = self .simple_client (uri_fmt % (CLIENT_PEM , "true" , CA_PEM ))
305305 await self .assertClientWorks (client )
306306
307+ @unittest .skipIf (
308+ "PyPy" in sys .version and not _IS_SYNC ,
309+ "https://github.com/pypy/pypy/issues/5131 flaky on async PyPy due to SSL EOF" ,
310+ )
307311 @async_client_context .require_tlsCertificateKeyFile
308312 @async_client_context .require_server_resolvable
313+ @async_client_context .require_no_api_version
309314 @ignore_deprecations
310315 async def test_cert_ssl_validation_hostname_matching (self ):
311316 # Expects the server to be running with server.pem and ca.pem
@@ -430,8 +435,13 @@ async def test_tlsCRLFile_support(self):
430435 self .simple_client (uri_fmt % (CRL_PEM , CA_PEM ), ** self .credentials ) # type: ignore[arg-type]
431436 )
432437
438+ @unittest .skipIf (
439+ "PyPy" in sys .version and not _IS_SYNC ,
440+ "https://github.com/pypy/pypy/issues/5131 flaky on async PyPy due to SSL EOF" ,
441+ )
433442 @async_client_context .require_tlsCertificateKeyFile
434443 @async_client_context .require_server_resolvable
444+ @async_client_context .require_no_api_version
435445 @ignore_deprecations
436446 async def test_validation_with_system_ca_certs (self ):
437447 # Expects the server to be running with server.pem and ca.pem.
Original file line number Diff line number Diff line change @@ -304,8 +304,13 @@ def test_cert_ssl_uri_support(self):
304304 client = self .simple_client (uri_fmt % (CLIENT_PEM , "true" , CA_PEM ))
305305 self .assertClientWorks (client )
306306
307+ @unittest .skipIf (
308+ "PyPy" in sys .version and not _IS_SYNC ,
309+ "https://github.com/pypy/pypy/issues/5131 flaky on async PyPy due to SSL EOF" ,
310+ )
307311 @client_context .require_tlsCertificateKeyFile
308312 @client_context .require_server_resolvable
313+ @client_context .require_no_api_version
309314 @ignore_deprecations
310315 def test_cert_ssl_validation_hostname_matching (self ):
311316 # Expects the server to be running with server.pem and ca.pem
@@ -430,8 +435,13 @@ def test_tlsCRLFile_support(self):
430435 self .simple_client (uri_fmt % (CRL_PEM , CA_PEM ), ** self .credentials ) # type: ignore[arg-type]
431436 )
432437
438+ @unittest .skipIf (
439+ "PyPy" in sys .version and not _IS_SYNC ,
440+ "https://github.com/pypy/pypy/issues/5131 flaky on async PyPy due to SSL EOF" ,
441+ )
433442 @client_context .require_tlsCertificateKeyFile
434443 @client_context .require_server_resolvable
444+ @client_context .require_no_api_version
435445 @ignore_deprecations
436446 def test_validation_with_system_ca_certs (self ):
437447 # Expects the server to be running with server.pem and ca.pem.
You can’t perform that action at this time.
0 commit comments