Stop looking for warnings we shouldn't be triggering

These were only raised on Python 2.7 and 3.6, which are no longer supported.

Related-Change: https://review.opendev.org/c/openstack/swift/+/748297
Related-Change: https://review.opendev.org/c/openstack/swift/+/783968
Related-Change: https://review.opendev.org/c/openstack/swift/+/839828
Change-Id: I2a7e608364c013f260ca596852dc0c141b72814e
Signed-off-by: Tim Burke <tim.burke@gmail.com>
This commit is contained in:
Tim Burke
2026-03-24 19:41:42 -07:00
parent 31dc7cf0e8
commit 4ff01ea2fa
2 changed files with 0 additions and 24 deletions

View File

@@ -13,8 +13,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import warnings
__version__ = None
# First, try to get our version out of PKG-INFO. If we're installed,
@@ -45,11 +43,3 @@ if __version__ is None:
_version_info = pbr.version.VersionInfo('swift')
__version__ = _version_info.release_string()
__canonical_version__ = _version_info.version_string()
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'))
warnings.filterwarnings('ignore', message=(
'Python 3.6 is no longer supported by the Python core team. '
'Therefore, support for it is deprecated in cryptography'))

View File

@@ -19,20 +19,6 @@ import os
from unittest.util import safe_repr
import warnings
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.'))
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 the next release.'))
warnings.filterwarnings('ignore', message=(
'Python 3.6 is no longer supported by the Python core team. '
'Therefore, support for it is deprecated in cryptography '
'and will be removed in a future release.'))
import unittest
from eventlet.green import socket