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
+1
View File
@@ -4,6 +4,7 @@ Version 1.1.3
- Create ed25519 key files with secure permissions to avoid risk of
insecure chmode call/race condition (Thanks to Hanno Böck for the report
and the suggested fix) (LP: #2017430)
- Properly cleanup temporary directories in tests
2023-04-09 Version 1.1.2
- Verify correct AMS header is used for ARC seal verification (André Cruz)
+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):