Skip to content

Commit

Permalink
Fix name of gpg executable in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lucc committed Jun 17, 2023
1 parent 1c1955e commit bd02a58
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_crypto.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -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)


Expand Down

0 comments on commit bd02a58

Please sign in to comment.