Properly cleanup temporary directories in tests
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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