diff --git a/tests/test_crypto.py b/tests/test_crypto.py index 8c8b241b4..fa7e91aa7 100644 --- a/tests/test_crypto.py +++ b/tests/test_crypto.py @@ -126,7 +126,7 @@ def test_valid_signature_generated(self): 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 @@ def test_encrypt(self): 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)