Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
31 lines
1,015 B
Diff
31 lines
1,015 B
Diff
--- a/tests/gpg/t-verify.c
|
|
+++ b/tests/gpg/t-verify.c
|
|
@@ -304,7 +304,7 @@
|
|
err = gpgme_data_new (&text);
|
|
fail_if_err (err);
|
|
err = gpgme_op_verify (ctx, sig, NULL, text);
|
|
- if (gpgme_err_code (err) != GPG_ERR_BAD_DATA)
|
|
+ if (gpgme_err_code (err) == GPG_ERR_NO_ERROR)
|
|
{
|
|
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."
|
|
|