File test_x509_decodebytes_fix.patch of Package saltbundlepy-m2crypto
--- a/tests/test_x509.py 2018-10-30 17:36:24.000000000 +0300
+++ b/tests/test_x509.py 2021-09-10 14:49:24.969373933 +0300
@@ -592,7 +592,7 @@
with warnings.catch_warnings():
warnings.simplefilter('ignore', DeprecationWarning)
- seq = base64.decodestring(b64)
+ seq = base64.decodebytes(b64)
stack = X509.new_stack_from_der(seq)
cert = stack.pop()
@@ -612,7 +612,7 @@
with warnings.catch_warnings():
warnings.simplefilter('ignore', DeprecationWarning)
- seq = base64.decodestring(b64)
+ seq = base64.decodebytes(b64)
stack = X509.new_stack_from_der(seq)
num = len(stack)