1 --- a/tests/gpg/t-verify.c
2 +++ b/tests/gpg/t-verify.c
4 err = gpgme_data_new (&text);
6 err = gpgme_op_verify (ctx, sig, NULL, text);
7 - if (gpgme_err_code (err) != GPG_ERR_BAD_DATA)
8 + if (gpgme_err_code (err) == GPG_ERR_NO_ERROR)
10 fprintf (stderr, "%s:%i: Double plaintext message not detected\n",
12 --- a/lang/python/tests/t-verify.py
13 +++ b/lang/python/tests/t-verify.py
15 c.op_verify(sig, None, text)
16 except Exception as e:
17 assert type(e) == gpg.errors.GPGMEError
18 - assert e.getcode() == gpg.errors.BAD_DATA
19 + assert e.getcode() != gpg.errors.NO_ERROR
21 assert False, "Expected an error but got none."
25 c.verify(double_plaintext_sig)
26 except gpg.errors.GPGMEError as e:
27 - assert e.getcode() == gpg.errors.BAD_DATA
28 + assert e.getcode() != gpg.errors.NO_ERROR
30 assert False, "Expected an error but got none."