Skip to content

Commit

Permalink
python3.pkgs.gpgme: fix a test
Browse files Browse the repository at this point in the history
This is a python counterpart of commit db6b3e0; /cc PR #180336
  • Loading branch information
vcunat committed Jul 8, 2022
1 parent 8e1f71e commit add0201
Showing 1 changed file with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,23 @@
{
fprintf (stderr, "%s:%i: Double plaintext message not detected\n",
PGM, __LINE__);
--- a/lang/python/tests/t-verify.py
+++ b/lang/python/tests/t-verify.py
@@ -142,7 +142,7 @@
c.op_verify(sig, None, text)
except Exception as e:
assert type(e) == gpg.errors.GPGMEError
- assert e.getcode() == gpg.errors.BAD_DATA
+ assert e.getcode() != gpg.errors.NO_ERROR
else:
assert False, "Expected an error but got none."

@@ -178,7 +178,7 @@
try:
c.verify(double_plaintext_sig)
except gpg.errors.GPGMEError as e:
- assert e.getcode() == gpg.errors.BAD_DATA
+ assert e.getcode() != gpg.errors.NO_ERROR
else:
assert False, "Expected an error but got none."

0 comments on commit add0201

Please sign in to comment.