[git] GPGME - branch, master, updated. gpgme-1.8.0-85-ga7c6353

by Justus Winter cvs at cvs.gnupg.org
Mon Feb 20 10:32:31 CET 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  a7c6353edab57b67180aa127ec77d9353c2366fb (commit)
      from  15fbac9e72a4d1bff9a3b9e9822f9175b09fbcd5 (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 a7c6353edab57b67180aa127ec77d9353c2366fb
Author: Justus Winter <justus at g10code.com>
Date:   Mon Feb 20 10:23:41 2017 +0100

    python: Fix test.
    
    * lang/python/tests/t-quick-key-manipulation.py: Modify the
    configuration file in the ephemeral home directory, not the one used
    by all the tests.
    
    Fixes-commit: 15fbac9e72a4d1bff9a3b9e9822f9175b09fbcd5
    Signed-off-by: Justus Winter <justus at g10code.com>

diff --git a/lang/python/tests/t-quick-key-manipulation.py b/lang/python/tests/t-quick-key-manipulation.py
index d7d2bd4..45e4c0e 100755
--- a/lang/python/tests/t-quick-key-manipulation.py
+++ b/lang/python/tests/t-quick-key-manipulation.py
@@ -20,6 +20,7 @@
 from __future__ import absolute_import, print_function, unicode_literals
 del absolute_import, print_function, unicode_literals
 
+import os
 import gpg
 
 import support
@@ -92,7 +93,7 @@ with support.EphemeralContext() as ctx:
         pass
 
     # Check setting the TOFU policy.
-    with open("gpg.conf", "a") as handle:
+    with open(os.path.join(ctx.home_dir, "gpg.conf"), "a") as handle:
         handle.write("trust-model tofu+pgp\n")
 
     for name, policy in [(name, getattr(gpg.constants.tofu.policy, name))

-----------------------------------------------------------------------

Summary of changes:
 lang/python/tests/t-quick-key-manipulation.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)


hooks/post-receive
-- 
GnuPG Made Easy
http://git.gnupg.org




More information about the Gnupg-commits mailing list