[git] GPGME - branch, master, updated. gpgme-1.9.0-8-g159505a
by Justus Winter
cvs at cvs.gnupg.org
Thu Mar 30 15:48:57 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 159505a28864399cc5405d9f85f35ab011a3259e (commit)
from 2c063a8d60418ee59ae80da221420c6f3fa19abb (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 159505a28864399cc5405d9f85f35ab011a3259e
Author: Justus Winter <justus at g10code.com>
Date: Thu Mar 30 14:58:29 2017 +0200
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 <justus at g10code.com>
diff --git a/lang/python/tests/final.py b/lang/python/tests/final.py
index 8e7ab33..65375cb 100755
--- a/lang/python/tests/final.py
+++ b/lang/python/tests/final.py
@@ -22,6 +22,8 @@ del absolute_import, print_function, unicode_literals
import os
import subprocess
+import support
+_ = support # to appease pyflakes.
subprocess.check_call([os.path.join(os.getenv('top_srcdir'),
"tests", "start-stop-agent"), "--stop"])
diff --git a/lang/python/tests/t-callbacks.py b/lang/python/tests/t-callbacks.py
index 94cf11e..9a70cda 100755
--- a/lang/python/tests/t-callbacks.py
+++ b/lang/python/tests/t-callbacks.py
@@ -23,8 +23,7 @@ del absolute_import, print_function, unicode_literals
import os
import gpg
import support
-
-support.assert_gpg_version()
+_ = support # to appease pyflakes.
c = gpg.Context()
c.set_pinentry_mode(gpg.constants.PINENTRY_MODE_LOOPBACK)
diff --git a/lang/python/tests/t-data.py b/lang/python/tests/t-data.py
index d1facd4..3301319 100755
--- a/lang/python/tests/t-data.py
+++ b/lang/python/tests/t-data.py
@@ -24,6 +24,8 @@ import io
import os
import tempfile
import gpg
+import support
+_ = support # to appease pyflakes.
data = gpg.Data('Hello world!')
assert data.read() == b'Hello world!'
diff --git a/lang/python/tests/t-edit.py b/lang/python/tests/t-edit.py
index ffc3296..b1075a9 100755
--- a/lang/python/tests/t-edit.py
+++ b/lang/python/tests/t-edit.py
@@ -25,8 +25,7 @@ import sys
import os
import gpg
import support
-
-support.assert_gpg_version()
+_ = support # to appease pyflakes.
class KeyEditor(object):
def __init__(self):
diff --git a/lang/python/tests/t-encrypt-sym.py b/lang/python/tests/t-encrypt-sym.py
index 8ee9cd6..8299293 100755
--- a/lang/python/tests/t-encrypt-sym.py
+++ b/lang/python/tests/t-encrypt-sym.py
@@ -23,8 +23,7 @@ del absolute_import, print_function, unicode_literals
import os
import gpg
import support
-
-support.assert_gpg_version()
+_ = support # to appease pyflakes.
for passphrase in ("abc", b"abc"):
c = gpg.Context()
diff --git a/lang/python/tests/t-file-name.py b/lang/python/tests/t-file-name.py
index aab5680..32fe84a 100755
--- a/lang/python/tests/t-file-name.py
+++ b/lang/python/tests/t-file-name.py
@@ -23,6 +23,7 @@ del absolute_import, print_function, unicode_literals
import os
import gpg
import support
+_ = support # to appease pyflakes.
testname = "abcde12345"
diff --git a/lang/python/tests/t-idiomatic.py b/lang/python/tests/t-idiomatic.py
index 826bc23..b7ae4eb 100755
--- a/lang/python/tests/t-idiomatic.py
+++ b/lang/python/tests/t-idiomatic.py
@@ -26,6 +26,7 @@ import os
import tempfile
import gpg
import support
+_ = support # to appease pyflakes.
# Both Context and Data can be used as context manager:
with gpg.Context() as c, gpg.Data() as d:
diff --git a/lang/python/tests/t-keylist-from-data.py b/lang/python/tests/t-keylist-from-data.py
index 6a26267..6503eb7 100755
--- a/lang/python/tests/t-keylist-from-data.py
+++ b/lang/python/tests/t-keylist-from-data.py
@@ -20,8 +20,6 @@
from __future__ import absolute_import, print_function, unicode_literals
del absolute_import, print_function, unicode_literals
-import os
-import sys
import gpg
import support
diff --git a/lang/python/tests/t-protocol-assuan.py b/lang/python/tests/t-protocol-assuan.py
index 27b28c7..8da5035 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.
diff --git a/lang/python/tests/t-sig-notation.py b/lang/python/tests/t-sig-notation.py
index 2277497..bc8da2e 100755
--- a/lang/python/tests/t-sig-notation.py
+++ b/lang/python/tests/t-sig-notation.py
@@ -23,6 +23,7 @@ del absolute_import, print_function, unicode_literals
import os
import gpg
import support
+_ = support # to appease pyflakes.
expected_notations = {
"laughing at me": ("Just Squeeze Me", gpg.constants.sig.notation.HUMAN_READABLE),
diff --git a/lang/python/tests/t-trustlist.py b/lang/python/tests/t-trustlist.py
index 8586596..89524bb 100755
--- a/lang/python/tests/t-trustlist.py
+++ b/lang/python/tests/t-trustlist.py
@@ -22,6 +22,7 @@ del absolute_import, print_function, unicode_literals
import gpg
import support
+_ = support # to appease pyflakes.
c = gpg.Context()
diff --git a/lang/python/tests/t-verify.py b/lang/python/tests/t-verify.py
index 0347638..320dae6 100755
--- a/lang/python/tests/t-verify.py
+++ b/lang/python/tests/t-verify.py
@@ -24,6 +24,7 @@ import sys
import os
import gpg
import support
+_ = support # to appease pyflakes.
test_text1 = b"Just GNU it!\n"
test_text1f= b"Just GNU it?\n"
diff --git a/lang/python/tests/t-wait.py b/lang/python/tests/t-wait.py
index 0c403fa..3101301 100755
--- a/lang/python/tests/t-wait.py
+++ b/lang/python/tests/t-wait.py
@@ -23,6 +23,7 @@ del absolute_import, print_function, unicode_literals
import time
import gpg
import support
+_ = support # to appease pyflakes.
c = gpg.Context()
c.set_armor(True)
diff --git a/lang/python/tests/t-wrapper.py b/lang/python/tests/t-wrapper.py
index 79f047f..08a320d 100755
--- a/lang/python/tests/t-wrapper.py
+++ b/lang/python/tests/t-wrapper.py
@@ -18,6 +18,8 @@
# License along with this program; if not, see <http://www.gnu.org/licenses/>.
import gpg
+import support
+_ = support # to appease pyflakes.
d0 = gpg.Data()
d0.seek # trigger on-demand-wrapping
-----------------------------------------------------------------------
Summary of changes:
lang/python/tests/final.py | 2 ++
lang/python/tests/t-callbacks.py | 3 +--
lang/python/tests/t-data.py | 2 ++
lang/python/tests/t-edit.py | 3 +--
lang/python/tests/t-encrypt-sym.py | 3 +--
lang/python/tests/t-file-name.py | 1 +
lang/python/tests/t-idiomatic.py | 1 +
lang/python/tests/t-keylist-from-data.py | 2 --
lang/python/tests/t-protocol-assuan.py | 2 ++
lang/python/tests/t-sig-notation.py | 1 +
lang/python/tests/t-trustlist.py | 1 +
lang/python/tests/t-verify.py | 1 +
lang/python/tests/t-wait.py | 1 +
lang/python/tests/t-wrapper.py | 2 ++
14 files changed, 17 insertions(+), 8 deletions(-)
hooks/post-receive
--
GnuPG Made Easy
http://git.gnupg.org
More information about the Gnupg-commits
mailing list