diff options
author | Anton Khirnov <anton@khirnov.net> | 2020-02-03 12:37:42 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2020-02-03 13:00:02 +0100 |
commit | beba605b3088043c6f3f5a9d2f243880b3d4710b (patch) | |
tree | 1d5a9d0c9afb68b39d91b5d9d7592ee8eaa3578c /tests | |
parent | ebc76b4e64dee0d83c08dbc2b38ba63ac748c8dc (diff) |
tests: run 'gpg' instead of obsolete 'gpg2'
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_crypto.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_crypto.py b/tests/test_crypto.py index 8c8b241b..fa7e91aa 100644 --- a/tests/test_crypto.py +++ b/tests/test_crypto.py @@ -126,7 +126,7 @@ class TestDetachedSignatureFor(unittest.TestCase): text = f.name self.addCleanup(os.unlink, f.name) - res = subprocess.check_call(['gpg2', '--verify', sig, text], + res = subprocess.check_call(['gpg', '--verify', sig, text], stdout=DEVNULL, stderr=DEVNULL) self.assertEqual(res, 0) @@ -377,7 +377,7 @@ class TestEncrypt(unittest.TestCase): self.addCleanup(os.unlink, enc_file) dec = subprocess.check_output( - ['gpg2', '--decrypt', enc_file], stderr=DEVNULL) + ['gpg', '--decrypt', enc_file], stderr=DEVNULL) self.assertEqual(to_encrypt, dec) |