Properly cleanup temporary directories in tests
This commit is contained in:
1 parent
7262f53687
commit
dd650da4f0
2 files changed
+3
No files matched your search
@@ -60,6 +60,7 @@ class TestSignAndVerify(unittest.TestCase):
|
||||
canonicalize=(header_algo, body_algo))
|
||||
res = dkim.verify(sig + self.message, dnsfunc=self.dnsfuncRSA)
|
||||
self.assertTrue(res)
|
||||
tmpdir.cleanup()
|
||||
|
||||
|
||||
def test_generate_verifies_Ed25519_key(self):
|
||||
@@ -82,6 +83,7 @@ class TestSignAndVerify(unittest.TestCase):
|
||||
canonicalize=(header_algo, body_algo))
|
||||
res = dkim.verify(sig + self.message, dnsfunc=self.dnsfuncED25519)
|
||||
self.assertTrue(res)
|
||||
tmpdir.cleanup()
|
||||
|
||||
|
||||
def dnsfuncRSA(self, domain, timeout=5):
|
||||
|
||||
Reference in new issue
Block a user