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
38
38
fi
39
39
fi
40
40
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
+
41
51
echo " 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):
304
304
client = self .simple_client (uri_fmt % (CLIENT_PEM , "true" , CA_PEM ))
305
305
await self .assertClientWorks (client )
306
306
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
+ )
307
311
@async_client_context .require_tlsCertificateKeyFile
308
312
@async_client_context .require_server_resolvable
313
+ @async_client_context .require_no_api_version
309
314
@ignore_deprecations
310
315
async def test_cert_ssl_validation_hostname_matching (self ):
311
316
# Expects the server to be running with server.pem and ca.pem
@@ -430,8 +435,13 @@ async def test_tlsCRLFile_support(self):
430
435
self .simple_client (uri_fmt % (CRL_PEM , CA_PEM ), ** self .credentials ) # type: ignore[arg-type]
431
436
)
432
437
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
+ )
433
442
@async_client_context .require_tlsCertificateKeyFile
434
443
@async_client_context .require_server_resolvable
444
+ @async_client_context .require_no_api_version
435
445
@ignore_deprecations
436
446
async def test_validation_with_system_ca_certs (self ):
437
447
# 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):
304
304
client = self .simple_client (uri_fmt % (CLIENT_PEM , "true" , CA_PEM ))
305
305
self .assertClientWorks (client )
306
306
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
+ )
307
311
@client_context .require_tlsCertificateKeyFile
308
312
@client_context .require_server_resolvable
313
+ @client_context .require_no_api_version
309
314
@ignore_deprecations
310
315
def test_cert_ssl_validation_hostname_matching (self ):
311
316
# Expects the server to be running with server.pem and ca.pem
@@ -430,8 +435,13 @@ def test_tlsCRLFile_support(self):
430
435
self .simple_client (uri_fmt % (CRL_PEM , CA_PEM ), ** self .credentials ) # type: ignore[arg-type]
431
436
)
432
437
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
+ )
433
442
@client_context .require_tlsCertificateKeyFile
434
443
@client_context .require_server_resolvable
444
+ @client_context .require_no_api_version
435
445
@ignore_deprecations
436
446
def test_validation_with_system_ca_certs (self ):
437
447
# Expects the server to be running with server.pem and ca.pem.
You can’t perform that action at this time.
0 commit comments