Skip to content
This repository has been archived by the owner on Nov 13, 2023. It is now read-only.

Commit

Permalink
Test: update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
davedoesdev committed Oct 28, 2021
1 parent 54f20e3 commit 21713b5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/alg_none_verification_vows.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ def token_should_not_verify(self, r):
expect([
'Verification failed for all signatures[\'Failed: [InvalidJWSSignature(\\\'Verification failed {InvalidSignature(\\\\\\\'The "none" signature cannot be verified\\\\\\\',)}\\\',)]\']',
'Verification failed for all signatures[\'Failed: [InvalidJWSSignature(\\\'Verification failed {InvalidSignature(\\\\\\\'The "none" signature cannot be verified\\\\\\\')}\\\')]\']',
'Verification failed for all signatures["Failed: [InvalidJWSSignature(\'Verification failed\')]"]', # python3 uses raise from and doesn't put reason in exception
# On Python3, jwcrypto uses raise from and doesn't put the reason in exception.
# It also uses repr() on the exception so loses the cause attribute.
'Verification failed for all signatures["Failed: [InvalidJWSSignature(\'Verification failed\')]"]',
'Verification failed for all signatures["Failed: [InvalidJWSSignature(\'Verification failed\',)]"]'
]).to_include(str(r))

Expand Down

0 comments on commit 21713b5

Please sign in to comment.