python: Print path of the Python module used during tests.
authorJustus Winter <justus@g10code.com>
Thu, 2 Mar 2017 15:06:29 +0000 (16:06 +0100)
committerJustus Winter <justus@g10code.com>
Thu, 2 Mar 2017 15:06:29 +0000 (16:06 +0100)
* 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 <justus@g10code.com>
lang/python/tests/initial.py

index ebe7f8a..4a02762 100755 (executable)
@@ -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'),