summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/addressbook/abook_test.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/addressbook/abook_test.py b/tests/addressbook/abook_test.py
index 13eb9b5a..32be2cbe 100644
--- a/tests/addressbook/abook_test.py
+++ b/tests/addressbook/abook_test.py
@@ -3,6 +3,7 @@
# For further details see the COPYING file
from __future__ import absolute_import
+import os
import tempfile
import unittest
@@ -31,6 +32,7 @@ class TestAbookAddressBook(unittest.TestCase):
with tempfile.NamedTemporaryFile(delete=False) as tmp:
tmp.write(data)
path = tmp.name
+ self.addCleanup(os.unlink, path)
addressbook = abook.AbookAddressBook(path)
actual = addressbook.get_contacts()
expected = [('me', 'me@example.com'), ('you', 'you@other.domain'),