From fd7f68258e3171817976f04bb561dc8fa8ef9261 Mon Sep 17 00:00:00 2001 From: Romain Thomas Date: Sat, 30 Nov 2024 07:02:51 +0100 Subject: [PATCH] Fix GHA test --- tests/pe/test_authenticode.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tests/pe/test_authenticode.py b/tests/pe/test_authenticode.py index 3cfe0f7fc2..e580329072 100644 --- a/tests/pe/test_authenticode.py +++ b/tests/pe/test_authenticode.py @@ -276,8 +276,14 @@ def test_issue_912(): def test_verification_flags_str(): flag = lief.PE.Signature.VERIFICATION_FLAGS.BAD_DIGEST | \ lief.PE.Signature.VERIFICATION_FLAGS.CERT_FUTURE - assert str(flag) == "VERIFICATION_FLAGS.BAD_DIGEST|CERT_FUTURE" - assert repr(flag) == "VERIFICATION_FLAGS.BAD_DIGEST|CERT_FUTURE" + assert str(flag) in { + "VERIFICATION_FLAGS.BAD_DIGEST|CERT_FUTURE", + "VERIFICATION_FLAGS.CERT_FUTURE|BAD_DIGEST", + } + assert repr(flag) in { + "VERIFICATION_FLAGS.BAD_DIGEST|CERT_FUTURE", + "VERIFICATION_FLAGS.CERT_FUTURE|BAD_DIGEST", + } assert str(lief.PE.Signature.VERIFICATION_FLAGS.from_value(0)) == "VERIFICATION_FLAGS.OK" def test_ms_manifest_binary_id():