Skip to content

Commit

Permalink
Merge PR #235
Browse files Browse the repository at this point in the history
  • Loading branch information
dainnilsson committed Oct 22, 2024
2 parents 2ce5bf7 + 747673c commit d1c6459
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/test_attestation.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,12 +226,13 @@ def test_tpm_windows_hello_attestation(self):
try:
res = attestation.verify(statement, auth_data, client_param)
except UnsupportedAlgorithm as e:
if e._reason is _Reasons.UNSUPPORTED_HASH:
if e._reason == _Reasons.UNSUPPORTED_HASH:
self.skipTest(
"SHA1 signature verification not supported on this machine"
)
else:
raise e

res = attestation.verify(statement, auth_data, client_param)
self.assertEqual(res.attestation_type, AttestationType.ATT_CA)
verify_x509_chain(res.trust_path)

Expand Down

0 comments on commit d1c6459

Please sign in to comment.