@@ -641,7 +641,7 @@ def test_signer_protected_headers():
641641 _key = ECKey ().load_key (eck )
642642 keys = [_key ]
643643 _jws = JWS (payload , alg = "ES256" )
644- protected = dict (header1 = u "header1 is protected" , header2 = "header2 is protected too" , a = 1 )
644+ protected = dict (header1 = "header1 is protected" , header2 = "header2 is protected too" , a = 1 )
645645 _jwt = _jws .sign_compact (keys , protected = protected )
646646
647647 exp_protected = protected .copy ()
@@ -665,14 +665,14 @@ def test_verify_protected_headers():
665665 _key = ECKey ().load_key (eck )
666666 keys = [_key ]
667667 _jws = JWS (payload , alg = "ES256" )
668- protected = dict (header1 = u "header1 is protected" , header2 = "header2 is protected too" , a = 1 )
668+ protected = dict (header1 = "header1 is protected" , header2 = "header2 is protected too" , a = 1 )
669669 _jwt = _jws .sign_compact (keys , protected = protected )
670670 protectedHeader , enc_payload , sig = _jwt .split ("." )
671671 data = dict (
672672 payload = enc_payload ,
673673 signatures = [
674674 dict (
675- header = dict (alg = u "ES256" , jwk = _key .serialize ()),
675+ header = dict (alg = "ES256" , jwk = _key .serialize ()),
676676 protected = protectedHeader ,
677677 signature = sig ,
678678 )
0 commit comments