Commit 1145d6c8 authored by anarcat's avatar anarcat

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
anyways.

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)
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