We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c2bacf commit d1829c8Copy full SHA for d1829c8
1 file changed
Lib/test/test_ssl.py
@@ -327,10 +327,13 @@ def _get_openssl_error_lib():
327
if ctypes is None:
328
raise unittest.SkipTest("ctypes is required")
329
330
+ # Try _ssl first: it is already loaded and linked to the correct
331
+ # OpenSSL/AWS-LC. Falling back to find_library() may locate a
332
+ # different system libcrypto and abort the process (macOS).
333
for candidate in (
334
+ _ssl.__file__,
335
ctypes.util.find_library("crypto"),
336
ctypes.util.find_library("ssl"),
- _ssl.__file__,
337
):
338
if not candidate:
339
continue
0 commit comments