Changeset: f93e1005213f for MonetDB URL: https://dev.monetdb.org/hg/MonetDB/rev/f93e1005213f Modified Files: clients/mapilib/Tests/tlstester.py Branch: monetdburl Log Message:
Suppress CryptographyDeprecationWarning on old Pythons Warning duely noted. We don't like to run on those old Pythons either but we have to. diffs (21 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 @@ -18,9 +18,14 @@ from threading import Thread import threading from typing import Any, Callable, Dict, List, Optional, Tuple, Union -from cryptography import x509 -from cryptography.hazmat.primitives import serialization, hashes -from cryptography.hazmat.primitives.asymmetric import rsa + +import warnings +from cryptography.utils import CryptographyDeprecationWarning +with warnings.catch_warnings(): + warnings.filterwarnings('ignore', category=CryptographyDeprecationWarning) + from cryptography import x509 + from cryptography.hazmat.primitives import serialization, hashes + from cryptography.hazmat.primitives.asymmetric import rsa VERSION = "0.3.1" _______________________________________________ checkin-list mailing list -- checkin-list@monetdb.org To unsubscribe send an email to checkin-list-le...@monetdb.org