[git] GPGME - branch, master, updated. gpgme-1.8.0-122-g348da58
by Justus Winter
cvs at cvs.gnupg.org
Mon Mar 27 11:34:25 CEST 2017
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GnuPG Made Easy".
The branch, master has been updated
via 348da58fe0c3656e6177c98fef6b4c4331326c8e (commit)
from b6d544995047f9dce67316e4cdb12e9a6a9d04e4 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 348da58fe0c3656e6177c98fef6b4c4331326c8e
Author: Justus Winter <justus at g10code.com>
Date: Mon Mar 27 11:11:47 2017 +0200
python: Skip tests if running with GnuPG < 2.1.12.
* lang/python/tests/support.py (assert_gpg_version): Fix error
message. Skip all tests when we use GnuPG older than 2.1.12.
GnuPG-bug-id: 3008
Signed-off-by: Justus Winter <justus at g10code.com>
diff --git a/lang/python/tests/support.py b/lang/python/tests/support.py
index 680300c..fabd818 100644
--- a/lang/python/tests/support.py
+++ b/lang/python/tests/support.py
@@ -32,9 +32,14 @@ def assert_gpg_version(version=(2, 1, 0)):
clean_version = re.match(r'\d+\.\d+\.\d+', c.engine_info.version).group(0)
if tuple(map(int, clean_version.split('.'))) < version:
print("GnuPG too old: have {0}, need {1}.".format(
- c.engine_info.version, '.'.join(version)))
+ c.engine_info.version, '.'.join(map(str, version))))
sys.exit(77)
+# Skip the Python tests for GnuPG < 2.1.12. Prior versions do not
+# understand the command line flags that we assume exist. C.f. issue
+# 3008.
+assert_gpg_version((2, 1, 12))
+
# known keys
alpha = "A0FF4590BB6122EDEF6E3C542D727CC768697734"
bob = "D695676BDCEDCC2CDD6152BCFE180B1DA9E3B0B2"
-----------------------------------------------------------------------
Summary of changes:
lang/python/tests/support.py | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
hooks/post-receive
--
GnuPG Made Easy
http://git.gnupg.org
More information about the Gnupg-commits
mailing list