python-tpm2-pytss/0001-test_crypto-fix-test_ecc_bad_curves-assert.patch
2022-07-11 16:38:58 +00:00

26 lines
897 B
Diff

From b88dc903e7d304851ed651f3a9aea24656a5681c Mon Sep 17 00:00:00 2001
From: Alberto Planas <aplanas@suse.com>
Date: Mon, 11 Jul 2022 11:54:47 +0200
Subject: [PATCH 1/1] test_crypto: fix test_ecc_bad_curves assert
---
test/test_crypto.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/test/test_crypto.py b/test/test_crypto.py
index 1120c7b..f65b465 100644
--- a/test/test_crypto.py
+++ b/test/test_crypto.py
@@ -581,7 +581,7 @@ class CryptoTest(TSS2_EsapiTest):
def test_ecc_bad_curves(self):
with self.assertRaises(ValueError) as e:
pub = TPMT_PUBLIC.from_pem(ecc_bad_curve)
- self.assertEqual(str(e.exception), "unsupported curve: sect163r2")
+ self.assertEqual(str(e.exception), "Unsupported key format")
pub = TPMT_PUBLIC.from_pem(ecc_public_key)
pub.parameters.eccDetail.curveID = TPM2_ECC.NONE
--
2.36.1