aboutsummaryrefslogtreecommitdiffstats
path: root/lang/python/tests/Makefile.am
diff options
context:
space:
mode:
authorJustus Winter <[email protected]>2016-05-19 09:03:27 +0000
committerJustus Winter <[email protected]>2016-05-19 13:58:45 +0000
commitd90857a08c4fe5b73b6d6d46fd6200efdd72db44 (patch)
tree93ce7fab9855dfa66bf0d1f45cba4010d3eba1af /lang/python/tests/Makefile.am
parentQt: Check for graphviz and set HAVE_DOT correctly (diff)
downloadgpgme-d90857a08c4fe5b73b6d6d46fd6200efdd72db44.tar.gz
gpgme-d90857a08c4fe5b73b6d6d46fd6200efdd72db44.zip
python: Robust exception handling in callbacks.
* lang/python/helpers.c (pygpgme_stash_callback_exception): New function. (pygpgme_raise_callback_exception): Likewise. (pyPassphraseCb): Stash python errors. * lang/python/helpers.h (pygpgme_raise_callback_exception): New prototype. * lang/python/pyme/core.py ({Context,Data}.__init__): Move common initialization to superclass. (Context.set_progress_cb): Hand in 'self'. * lang/python/pyme/util.py (GpgmeWrapper.__init__): New function. (GpgmeWrapper.__getattr__): Raise stashed exceptions. * lang/python/tests/Makefile.am (py_tests): Add new test. * lang/python/tests/t-callbacks.py: New file. Signed-off-by: Justus Winter <[email protected]>
Diffstat (limited to 'lang/python/tests/Makefile.am')
-rw-r--r--lang/python/tests/Makefile.am1
1 files changed, 1 insertions, 0 deletions
diff --git a/lang/python/tests/Makefile.am b/lang/python/tests/Makefile.am
index c4fc6029..30f1aec6 100644
--- a/lang/python/tests/Makefile.am
+++ b/lang/python/tests/Makefile.am
@@ -29,6 +29,7 @@ TESTS_ENVIRONMENT = GNUPGHOME=$(abs_builddir) \
PYTHONPATH=`echo $(abs_builddir)/../build/lib.*`
py_tests = t-wrapper.py \
+ t-callbacks.py \
t-data.py \
t-encrypt.py \
t-encrypt-sym.py \