Hello! We are running our annual fundraising. Please consider making a donation if you value this freely available service or want to support people around the world working towards liberatory social change. https://riseup.net/donate.

Commit 1145d6c8 authored by anarcat's avatar anarcat
Browse files

silence errors in test suite with GnuPG 2

it turns out GnuPG 2.1.x remove files on its own, which gets into a
race condition with the destructor of TemporaryKeyring

we simply ignore errors when removing files, as the files are absent

Closes: #61
parent d9f410b6
......@@ -619,7 +619,7 @@ class TempKeyring(Keyring):
Keyring.__init__(self, tempfile.mkdtemp(prefix="pygpg-"))
def __del__(self):
shutil.rmtree(self.homedir, ignore_errors=True)
class OpenPGPkey():
"""An OpenPGP key.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment