aboutsummaryrefslogtreecommitdiffstats
path: root/lang/python/tests/t-data.py
diff options
context:
space:
mode:
authorJustus Winter <[email protected]>2017-03-30 12:58:29 +0000
committerJustus Winter <[email protected]>2017-03-30 13:06:10 +0000
commit159505a28864399cc5405d9f85f35ab011a3259e (patch)
tree7eb20adfb143a9e12a28714b0da35e62fff9a524 /lang/python/tests/t-data.py
parentqt: Handle if gpg does not support tofu in test (diff)
downloadgpgme-159505a28864399cc5405d9f85f35ab011a3259e.tar.gz
gpgme-159505a28864399cc5405d9f85f35ab011a3259e.zip
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 <[email protected]>
Diffstat (limited to 'lang/python/tests/t-data.py')
-rwxr-xr-xlang/python/tests/t-data.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/lang/python/tests/t-data.py b/lang/python/tests/t-data.py
index d1facd40..33013193 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!'