aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustus Winter <[email protected]>2017-03-02 15:06:29 +0000
committerJustus Winter <[email protected]>2017-03-02 15:06:29 +0000
commit41398779abbcb1ec2d7491e141469a752fc706ff (patch)
treeefafc62d0be30daaaf2aefe5e8516bb2d19064e9
parentcore: Fix minor code style thing. (diff)
downloadgpgme-41398779abbcb1ec2d7491e141469a752fc706ff.tar.gz
gpgme-41398779abbcb1ec2d7491e141469a752fc706ff.zip
python: Print path of the Python module used during tests.
* lang/python/tests/initial.py: Print path of the Python module used during tests. Useful to detect if by any mistake the wrong module is picked up. Signed-off-by: Justus Winter <[email protected]>
-rwxr-xr-xlang/python/tests/initial.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/lang/python/tests/initial.py b/lang/python/tests/initial.py
index ebe7f8ad..4a02762b 100755
--- a/lang/python/tests/initial.py
+++ b/lang/python/tests/initial.py
@@ -24,6 +24,9 @@ import os
import subprocess
import gpg
import support
+
+print("Using gpg module from {0!r}.".format(os.path.dirname(gpg.__file__)))
+
support.init_gpgme(gpg.constants.protocol.OpenPGP)
subprocess.check_call([os.path.join(os.getenv('top_srcdir'),