diff test/gpgmelib.py @ 4745:ef4f1cefac9c

Fixed OpenPGP support for modern versions of libgpgme.
author Bernhard Reiter <bernhard@intevation.de>
date Thu, 17 Jan 2013 22:15:05 +0100
parents 46239c21a1eb
children dad18ee491a9
line wrap: on
line diff
--- a/test/gpgmelib.py	Thu Jan 17 21:28:17 2013 +0100
+++ b/test/gpgmelib.py	Thu Jan 17 22:15:05 2013 +0100
@@ -120,6 +120,8 @@
 def setUpPGP():
     os.mkdir(pgphome)
     os.environ['GNUPGHOME'] = pgphome
+    # gpgme_check_version() must have been called once in a programm
+    # to initialise some subsystems of gpgme. See roundup/roundupdb.py.
     ctx = pyme.core.Context()
     key = pyme.core.Data(pgp_test_key)
     ctx.op_import(key)

Roundup Issue Tracker: http://roundup-tracker.org/