File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed
Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change 5555 OpenSSL .SSL .SSLEAY_VERSION ,
5656).startswith (b'OpenSSL 1.0.' )
5757PY310_PLUS = sys .version_info [:2 ] >= (3 , 10 )
58+ PY38_OR_LOWER = sys .version_info [:2 ] <= (3 , 8 )
59+
60+ if PY38_OR_LOWER :
61+ # FIXME: This can be dropped together with Python 3.8.
62+ # FIXME: It's coming from `trustme < 1.2.0` as newer versions
63+ # FIXME: fixed the compatibility but dropped Python 3.8 support.
64+ pytestmark = [
65+ pytest .mark .filterwarnings (
66+ r'ignore:Passing pyOpenSSL PKey objects is deprecated\. '
67+ r'You should use a cryptography private key instead\.:'
68+ 'DeprecationWarning:OpenSSL.SSL' ,
69+ ),
70+ pytest .mark .filterwarnings (
71+ r'ignore:Passing pyOpenSSL X509 objects is deprecated\. '
72+ r'You should use a cryptography\.x509\.Certificate instead\.:'
73+ 'DeprecationWarning:OpenSSL.SSL' ,
74+ ),
75+ ]
5876
5977
6078_stdlib_to_openssl_verify = {
You can’t perform that action at this time.
0 commit comments