Properly cleanup temporary directories in tests

This commit is contained in:
Scott Kitterman
2023-04-30 09:47:26 -04:00
parent 7262f53687
commit dd650da4f0
2 changed files with 3 additions and 0 deletions
+2
View File
@@ -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):