aboutsummaryrefslogtreecommitdiffstats
path: root/lang/python/tests/t-decrypt-verify.py
diff options
context:
space:
mode:
authorBen McGinnes <[email protected]>2018-09-30 09:32:45 +0000
committerBen McGinnes <[email protected]>2018-09-30 09:32:45 +0000
commit837a4760533e80f075cd727f18354904b8a54132 (patch)
treec9795339a214d6b2aa5f0eba0b84ae7e5c40224b /lang/python/tests/t-decrypt-verify.py
parentpython bindings: ctx.decrypt (diff)
downloadgpgme-837a4760533e80f075cd727f18354904b8a54132.tar.gz
gpgme-837a4760533e80f075cd727f18354904b8a54132.zip
python bindings: fixing decrypt-verify
* lang/python/src/core.py: First restoring the exception to the being just that. * The means to manipulate the error output is temporarily in commented out code, but ought to be added to a proper test later. * In the mean time the original test, with a very slight change, works again. Tested-by: Ben McGinnes <[email protected]> Signed-off-by: Ben McGinnes <[email protected]>
Diffstat (limited to 'lang/python/tests/t-decrypt-verify.py')
-rwxr-xr-xlang/python/tests/t-decrypt-verify.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lang/python/tests/t-decrypt-verify.py b/lang/python/tests/t-decrypt-verify.py
index fcaa1346..991d18c9 100755
--- a/lang/python/tests/t-decrypt-verify.py
+++ b/lang/python/tests/t-decrypt-verify.py
@@ -70,7 +70,7 @@ with gpg.Context() as c:
try:
c.decrypt(
open(support.make_filename("cipher-2.asc")), verify=[alpha, bob])
- except gpg.errors.MissingSignatures as e:
+ except Exception as e:
assert len(e.missing) == 1
assert e.missing[0] == bob
else: