gpgme/lang/python/tests
Daniel Kahn Gillmor 4100794e30 python: stop raising BadSignatures from decrypt(verify=True)
* src/core.py (decrypt): filter out signatures with errors from the
returned verify_result, but avoid raising BadSignatures
* tests/t-decrypt-verify.py: ensure that only a single signature is
returned when evaluating cipher-3.asc, since the other signature is
unknown.

--

This change preserves the invariant that decrypt() only ever returns
valid signatures in the verify_result, but it avoids unnecessary
errors in the face of the presence of an additional bad signature.

GnuPG-bug-id: 4276
Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
2019-05-02 23:28:11 -04:00
..
encrypt-only.asc python: Add an idiomatic interface. 2016-07-15 18:28:09 +02:00
final.py doc: use https:// for www.gnu.org 2018-10-18 00:28:51 -04:00
initial.py doc: use https:// for www.gnu.org 2018-10-18 00:28:51 -04:00
Makefile.am python: make it easier to run a limited number of tests 2019-05-02 22:23:28 -04:00
run-tests.py doc: use https:// for www.gnu.org 2018-10-18 00:28:51 -04:00
sign-only.asc python: Add an idiomatic interface. 2016-07-15 18:28:09 +02:00
support.py doc: use https:// for www.gnu.org 2018-10-18 00:28:51 -04:00
t-callbacks.py python bindings: callback test 2018-10-20 11:07:55 +11:00
t-data.py doc: use https:// for www.gnu.org 2018-10-18 00:28:51 -04:00
t-decrypt-verify.py python: stop raising BadSignatures from decrypt(verify=True) 2019-05-02 23:28:11 -04:00
t-decrypt.py python/tests: try to decrypt and verify new test data 2019-05-02 22:23:28 -04:00
t-edit.py doc: use https:// for www.gnu.org 2018-10-18 00:28:51 -04:00
t-encrypt-large.py doc: use https:// for www.gnu.org 2018-10-18 00:28:51 -04:00
t-encrypt-sign.py doc: use https:// for www.gnu.org 2018-10-18 00:28:51 -04:00
t-encrypt-sym.py doc: use https:// for www.gnu.org 2018-10-18 00:28:51 -04:00
t-encrypt.py doc: use https:// for www.gnu.org 2018-10-18 00:28:51 -04:00
t-export.py doc: use https:// for www.gnu.org 2018-10-18 00:28:51 -04:00
t-file-name.py doc: use https:// for www.gnu.org 2018-10-18 00:28:51 -04:00
t-idiomatic.py doc: convert more http:// links to https:// 2018-10-18 00:28:51 -04:00
t-import.py doc: use https:// for www.gnu.org 2018-10-18 00:28:51 -04:00
t-keylist-from-data.py doc: use https:// for www.gnu.org 2018-10-18 00:28:51 -04:00
t-keylist.py doc: use https:// for www.gnu.org 2018-10-18 00:28:51 -04:00
t-protocol-assuan.py doc: use https:// for www.gnu.org 2018-10-18 00:28:51 -04:00
t-quick-key-creation.py doc: use https:// for www.gnu.org 2018-10-18 00:28:51 -04:00
t-quick-key-manipulation.py spelling: fix misspellings 2018-11-08 12:34:27 +07:00
t-quick-key-signing.py doc: use https:// for www.gnu.org 2018-10-18 00:28:51 -04:00
t-quick-subkey-creation.py doc: use https:// for www.gnu.org 2018-10-18 00:28:51 -04:00
t-sig-notation.py doc: use https:// for www.gnu.org 2018-10-18 00:28:51 -04:00
t-sign.py doc: use https:// for www.gnu.org 2018-10-18 00:28:51 -04:00
t-signers.py doc: use https:// for www.gnu.org 2018-10-18 00:28:51 -04:00
t-trustlist.py doc: use https:// for www.gnu.org 2018-10-18 00:28:51 -04:00
t-verify.py doc: use https:// for www.gnu.org 2018-10-18 00:28:51 -04:00
t-wait.py doc: use https:// for www.gnu.org 2018-10-18 00:28:51 -04:00
t-wrapper.py doc: use https:// for www.gnu.org 2018-10-18 00:28:51 -04:00