Description: Python 3.9: Use encodebytes not encodestring
Author: Thomas Goirand <zigo@debian.org>
Forwarded: no
Last-Update: 2021-02-03

--- python-pysaml2-6.5.1.orig/tests/test_60_sp.py
+++ python-pysaml2-6.5.1/tests/test_60_sp.py
@@ -73,7 +73,7 @@ class TestSP():
             "urn:mace:example.com:saml:roland:sp", trans_name_policy,
             "foba0001@example.com", authn=AUTHN)
 
-        resp_str = base64.encodestring(resp_str.encode('utf-8'))
+        resp_str = base64.encodebytes(resp_str.encode('utf-8'))
         self.sp.outstanding_queries = {"id1": "http://www.example.com/service"}
         session_info = self.sp._eval_authn_response(
             {}, {"SAMLResponse": [resp_str]})
