diff options
author | NIIBE Yutaka <[email protected]> | 2020-11-12 02:11:36 +0000 |
---|---|---|
committer | NIIBE Yutaka <[email protected]> | 2020-11-12 02:11:36 +0000 |
commit | 7139afc5cdc0d8203dc75d7c91fa94b704b3d64f (patch) | |
tree | a32fe27f845b7a44e9160a3f917e37f3ca1004c3 /lang/python/tests/t-quick-subkey-creation.py | |
parent | qt: Add export macro for QDebug operator (diff) | |
download | gpgme-7139afc5cdc0d8203dc75d7c91fa94b704b3d64f.tar.gz gpgme-7139afc5cdc0d8203dc75d7c91fa94b704b3d64f.zip |
python: Fix a test for newer GnuPG (>= 2.3).
* lang/python/tests/t-quick-subkey-creation.py: Specify RSA.
--
Using GnuPG 2.3, a key with default (ed25519/cv25519) cannot have some
combination of capabilities (e.g., "encr auth").
Signed-off-by: NIIBE Yutaka <[email protected]>
Diffstat (limited to 'lang/python/tests/t-quick-subkey-creation.py')
-rwxr-xr-x | lang/python/tests/t-quick-subkey-creation.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lang/python/tests/t-quick-subkey-creation.py b/lang/python/tests/t-quick-subkey-creation.py index 2a658eaa..e41d7a1f 100755 --- a/lang/python/tests/t-quick-subkey-creation.py +++ b/lang/python/tests/t-quick-subkey-creation.py @@ -70,7 +70,8 @@ with support.EphemeralContext() as ctx: continue res = ctx.create_subkey( - key, sign=sign, encrypt=encrypt, authenticate=authenticate) + key, sign=sign, encrypt=encrypt, authenticate=authenticate, + algorithm="rsa") subkey = get_subkey(res.fpr) assert sign == subkey.can_sign assert encrypt == subkey.can_encrypt |