From 919f421384bcdceaa25f2d9016ab08526a70ffd8 Mon Sep 17 00:00:00 2001 From: Pol Henarejos Date: Fri, 14 Aug 2026 18:26:01 +0200 Subject: [PATCH] Expect wrong P1P2 for invalid certificate occurrence Signed-off-by: Pol Henarejos --- tests/040_pcsc_extra/test_pcsc_extra.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/040_pcsc_extra/test_pcsc_extra.py b/tests/040_pcsc_extra/test_pcsc_extra.py index b9e8efe..5de8c2c 100644 --- a/tests/040_pcsc_extra/test_pcsc_extra.py +++ b/tests/040_pcsc_extra/test_pcsc_extra.py @@ -533,7 +533,7 @@ def test_openpgp_cardholder_certificate_occurrences(card): _, sw = raw(card, INS_SELECT_DATA, 0, 0x04, b"\x60\x04\x5C\x02\x00\x65") assert sw == b"\x6A\x88" _, sw = raw(card, INS_SELECT_DATA, 3, 0x04, b"\x60\x04\x5C\x02\x7F\x21") - assert sw == b"\x6A\x88" + assert sw == b"\x6B\x00" for occ in range(3): expect(card, INS_SELECT_DATA, occ, 0x04, b"\x60\x04\x5C\x02\x7F\x21") expect(card, INS_PUT_DATA, 0x7F, 0x21)