From 159505a28864399cc5405d9f85f35ab011a3259e Mon Sep 17 00:00:00 2001 From: Justus Winter Date: Thu, 30 Mar 2017 14:58:29 +0200 Subject: python: Fix skipping tests if running with GnuPG < 2.1.12. * final.py: Import 'support.py' for the side-effect of checking the GnuPG version. * t-data.py: Likewise. * t-protocol-assuan.py: Likewise. * t-wrapper.py: Likewise. * t-callbacks.py: Avoid warning about 'support' being unused. * t-edit.py: Likewise. * t-encrypt-sym.py: Likewise. * t-file-name.py: Likewise. * t-idiomatic.py: Likewise. * t-sig-notation.py: Likewise. * t-trustlist.py: Likewise. * t-verify.py: Likewise. * t-wait.py: Likewise. * t-keylist-from-data.py: Trim unused imports. GnuPG-bug-id: 3008 Fixes-commit: 348da58fe0c3656e6177c98fef6b4c4331326c8e Signed-off-by: Justus Winter --- lang/python/tests/t-protocol-assuan.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lang/python/tests/t-protocol-assuan.py') diff --git a/lang/python/tests/t-protocol-assuan.py b/lang/python/tests/t-protocol-assuan.py index 27b28c72..8da50351 100755 --- a/lang/python/tests/t-protocol-assuan.py +++ b/lang/python/tests/t-protocol-assuan.py @@ -21,6 +21,8 @@ from __future__ import absolute_import, print_function, unicode_literals del absolute_import, print_function, unicode_literals import gpg +import support +_ = support # to appease pyflakes. with gpg.Context(protocol=gpg.constants.protocol.ASSUAN) as c: # Do nothing. -- cgit v1.2.3