diff options
author | Catalin Enache <catalin.enache@windriver.com> | 2016-07-22 11:45:53 +0300 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2016-07-29 11:00:59 +0200 |
commit | ca6edca71a54cdfc91453d3e648d80a98ad1a963 (patch) | |
tree | 1c4b06d3b911cd6bc73b22240b56e1edcbbf6e0a /meta-python/recipes-devtools/python/python-pygpgme/0003-handle-generic-error-when-no-passphrase-callback-pre.patch | |
parent | 8dca4abac2743bbd241a3fe9e448b797dc561fbd (diff) | |
download | meta-openembedded-ca6edca71a54cdfc91453d3e648d80a98ad1a963.tar.gz |
python-pygpgme: update tests
python-pygpgme tests need to be updated in order to
be compatible with GnuPG 2.1 and newer versions.
Signed-off-by: Catalin Enache <catalin.enache@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-python/recipes-devtools/python/python-pygpgme/0003-handle-generic-error-when-no-passphrase-callback-pre.patch')
-rw-r--r-- | meta-python/recipes-devtools/python/python-pygpgme/0003-handle-generic-error-when-no-passphrase-callback-pre.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/meta-python/recipes-devtools/python/python-pygpgme/0003-handle-generic-error-when-no-passphrase-callback-pre.patch b/meta-python/recipes-devtools/python/python-pygpgme/0003-handle-generic-error-when-no-passphrase-callback-pre.patch new file mode 100644 index 0000000000..462f442286 --- /dev/null +++ b/meta-python/recipes-devtools/python/python-pygpgme/0003-handle-generic-error-when-no-passphrase-callback-pre.patch | |||
@@ -0,0 +1,28 @@ | |||
1 | From 024fe219582143017b2f02bc924c0ed107b63619 Mon Sep 17 00:00:00 2001 | ||
2 | From: Daniel Kahn Gillmor <dkg@fifthhorseman.net> | ||
3 | Date: Mon, 1 Feb 2016 19:27:59 -0500 | ||
4 | Subject: [PATCH 3/5] handle generic error when no passphrase callback present | ||
5 | |||
6 | apparently gpg 2.1 returns ERR_GENERAL right now if the pinentry was | ||
7 | in loopback mode and no passphrase callback was supplied. Earlier | ||
8 | versions supplied ERR_BAD_PASSPHRASE. | ||
9 | |||
10 | Upstream-Status: Backport | ||
11 | |||
12 | Signed-off-by: Catalin Enache <catalin.enache@windriver.com> | ||
13 | --- | ||
14 | tests/test_passphrase.py | 2 +- | ||
15 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
16 | |||
17 | diff --git a/tests/test_passphrase.py b/tests/test_passphrase.py | ||
18 | index 0a235e9..35b3c59 100644 | ||
19 | --- a/tests/test_passphrase.py | ||
20 | +++ b/tests/test_passphrase.py | ||
21 | @@ -41,7 +41,7 @@ class PassphraseTestCase(GpgHomeTestCase): | ||
22 | new_sigs = ctx.sign(plaintext, signature, gpgme.SIG_MODE_CLEAR) | ||
23 | except gpgme.GpgmeError as exc: | ||
24 | self.assertEqual(exc.args[0], gpgme.ERR_SOURCE_GPGME) | ||
25 | - self.assertEqual(exc.args[1], gpgme.ERR_BAD_PASSPHRASE) | ||
26 | + self.assertEqual(exc.args[1], gpgme.ERR_GENERAL) | ||
27 | else: | ||
28 | self.fail('gpgme.GpgmeError not raised') | ||