python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / development / libraries / gpgme / test_t-verify_double-plaintext.patch
blob8f866af0da9189cc97c652afac4099b8347151fe
1 --- a/tests/gpg/t-verify.c
2 +++ b/tests/gpg/t-verify.c
3 @@ -304,7 +304,7 @@
4 err = gpgme_data_new (&text);
5 fail_if_err (err);
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",
11 PGM, __LINE__);
12 --- a/lang/python/tests/t-verify.py
13 +++ b/lang/python/tests/t-verify.py
14 @@ -142,7 +142,7 @@
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
20 else:
21 assert False, "Expected an error but got none."
23 @@ -178,7 +178,7 @@
24 try:
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
29 else:
30 assert False, "Expected an error but got none."