summaryrefslogtreecommitdiff
path: root/obnamlib/encryption_tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'obnamlib/encryption_tests.py')
-rw-r--r--obnamlib/encryption_tests.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/obnamlib/encryption_tests.py b/obnamlib/encryption_tests.py
index 86fd2fa0..fc795fad 100644
--- a/obnamlib/encryption_tests.py
+++ b/obnamlib/encryption_tests.py
@@ -41,7 +41,7 @@ class SymmetricEncryptionTests(unittest.TestCase):
self.gpghome = tempfile.mkdtemp()
def tearDown(self):
- shutil.rmtree(self.gpghome)
+ shutil.rmtree(self.gpghome, ignore_errors=True)
def test_generates_key_of_correct_length(self):
numbits = 16
@@ -112,7 +112,7 @@ class GetPublicKeyTests(unittest.TestCase):
self.keyid = '1B321347'
def tearDown(self):
- shutil.rmtree(self.dirname)
+ shutil.rmtree(self.dirname, ignore_errors=True)
def test_exports_key(self):
key = obnamlib.get_public_key(self.keyid, gpghome=self.gpghome)
@@ -189,7 +189,7 @@ class PublicKeyEncryptionTests(unittest.TestCase):
self.keyid = '1B321347'
def tearDown(self):
- shutil.rmtree(self.dirname)
+ shutil.rmtree(self.dirname, ignore_errors=True)
def test_roundtrip_works(self):
cleartext = 'hello, world'