Changeset: a03685f9134e for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/a03685f9134e
Modified Files:
clients/mapilib/Tests/tlstester.py
Branch: monetdburl
Log Message:
Report Python and linked OpenSSL version if setting ctx.minimum_version fails
On the Darwin 19 test machine, setting minimum_version to 1.3 fails.
See what's going on.
diffs (22 lines):
diff --git a/clients/mapilib/Tests/tlstester.py
b/clients/mapilib/Tests/tlstester.py
--- a/clients/mapilib/Tests/tlstester.py
+++ b/clients/mapilib/Tests/tlstester.py
@@ -434,10 +434,14 @@ def make_context(allowtlsv12 = False):
if hasattr(context, 'minimum_version'):
context.maximum_version = ssl.TLSVersion.TLSv1_3
- if allowtlsv12:
- context.minimum_version = ssl.TLSVersion.TLSv1_2
- else:
- context.minimum_version = ssl.TLSVersion.TLSv1_3
+ try:
+ if allowtlsv12:
+ context.minimum_version = ssl.TLSVersion.TLSv1_2
+ else:
+ context.minimum_version = ssl.TLSVersion.TLSv1_3
+ except ValueError as e:
+ log.error(f"Setting context.minimum_version caused ValueError.
Python version {sys.version!r}, linked to OpenSSL {ssl.OPENSSL_VERSION}
({ssl.OPENSSL_VERSION_NUMBER:#x})")
+ raise e
return context
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]