File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,8 @@ Changes:
33
33
- Changed ``OpenSSL.crypto.X509Store.add_crl `` to also accept
34
34
``cryptography ``'s ``X509.CertificateRevocationList `` arguments in addition
35
35
to the now deprecated ``OpenSSL.crypto.CRL `` arguments.
36
+ - Fixed ``test_set_default_verify_paths `` test so that it is skipped if no
37
+ network connection is available.
36
38
37
39
23.2.0 (2023-05-30)
38
40
-------------------
Original file line number Diff line number Diff line change 27
27
AF_INET6 ,
28
28
MSG_PEEK ,
29
29
SHUT_RDWR ,
30
+ gaierror ,
30
31
socket ,
31
32
)
32
33
from sys import getfilesystemencoding , platform
@@ -1269,7 +1270,10 @@ def test_set_default_verify_paths(self):
1269
1270
)
1270
1271
1271
1272
client = socket_any_family ()
1272
- client .connect (("encrypted.google.com" , 443 ))
1273
+ try :
1274
+ client .connect (("encrypted.google.com" , 443 ))
1275
+ except gaierror :
1276
+ pytest .skip ("cannot connect to encrypted.google.com" )
1273
1277
clientSSL = Connection (context , client )
1274
1278
clientSSL .set_connect_state ()
1275
1279
clientSSL .set_tlsext_host_name (b"encrypted.google.com" )
You can’t perform that action at this time.
0 commit comments