Skip to content

Commit

Permalink
Silence python3.6 cryptography deprecation warnings
Browse files Browse the repository at this point in the history
```
/opt/**********/st2/lib/python3.6/site-packages/st2client/shell.py:27: CryptographyDeprecationWarning: Python 3.6 is no longer supported by the Python core team. Therefore, support for it is deprecated in cryptography. The next release of cryptography (40.0) will be the last to support Python 3.6.
  from cryptography.utils import CryptographyDeprecationWarning
```
in CLI and failing py3.6 tests
  • Loading branch information
arm4b committed Nov 2, 2023
1 parent f7100f4 commit 7bd17de
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions st2common/tests/integration/test_logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@

from __future__ import absolute_import

# Ignore CryptographyDeprecationWarning warnings which appear on Python 3.6
# TODO: Remove after dropping python3.6
import warnings

warnings.filterwarnings("ignore", message="Python 3.6 is no longer supported")

import os
import sys
import signal
Expand Down

0 comments on commit 7bd17de

Please sign in to comment.