From 104afe56face81fec79d25b1384566ded5353411 Mon Sep 17 00:00:00 2001 From: Tim Burke Date: Thu, 12 Nov 2020 17:32:19 -0800 Subject: [PATCH] py2: Suppress more CryptographyDeprecationWarnings Change-Id: Icdbebb55e85763a7bd2a269753ced61a99e557be --- swift/__init__.py | 2 +- test/__init__.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/swift/__init__.py b/swift/__init__.py index 3b2bb6371e..88fc403cec 100644 --- a/swift/__init__.py +++ b/swift/__init__.py @@ -77,7 +77,7 @@ if (3, 0) <= sys.version_info[:2] <= (3, 5): del JsonLoadsPatcher -warnings.filterwarnings('ignore', module='cryptography', message=( +warnings.filterwarnings('ignore', module='cryptography|OpenSSL', message=( 'Python 2 is no longer supported by the Python core team. ' 'Support for it is now deprecated in cryptography, ' 'and will be removed in a future release.')) diff --git a/test/__init__.py b/test/__init__.py index 6d7351955b..363efb53c7 100644 --- a/test/__init__.py +++ b/test/__init__.py @@ -38,7 +38,7 @@ except ImportError: return result[:_MAX_LENGTH] + ' [truncated]...' import warnings -warnings.filterwarnings('ignore', module='cryptography', message=( +warnings.filterwarnings('ignore', module='cryptography|OpenSSL', message=( 'Python 2 is no longer supported by the Python core team. ' 'Support for it is now deprecated in cryptography, ' 'and will be removed in a future release.'))