From beba605b3088043c6f3f5a9d2f243880b3d4710b Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Mon, 3 Feb 2020 12:37:42 +0100 Subject: tests: run 'gpg' instead of obsolete 'gpg2' --- tests/test_crypto.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') 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) -- cgit v1.2.3