aboutsummaryrefslogtreecommitdiffstats
path: root/lang/python/tests/support.py
diff options
context:
space:
mode:
Diffstat (limited to 'lang/python/tests/support.py')
-rw-r--r--lang/python/tests/support.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/lang/python/tests/support.py b/lang/python/tests/support.py
index 680300c1..fabd8180 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"