Project

General

Profile

Actions

Feature #20724

open

Silence httplib2/ssl deprecation warning

Added by Brett Smith 10 months ago. Updated 2 months ago.

Status:
New
Priority:
Low
Assigned To:
-
Category:
Tests
Target version:
Story points:
0.5

Description

The Python SDK tests will periodically report this deprecation warning:

/home/brett/Curii/arvados/sdk/python/.eggs/httplib2-0.20.1-py3.11.egg/httplib2/__init__.py:147: DeprecationWarning: ssl.PROTOCOL_TLS is deprecated 
  context = ssl.SSLContext(DEFAULT_TLS_VERSION)

There's nothing we can do about this directly since httplib2 isn't our library (unless we want to put together a pull request). But we can configure our test infrastructure to silence the warning to reduce noise. This could be done directly in code via the warnings module or via configuration like the PYTHONWARNINGS environment variable.

Actions

Also available in: Atom PDF