diff options
Diffstat (limited to 'tests/addressbook')
-rw-r--r-- | tests/addressbook/abook_test.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/addressbook/abook_test.py b/tests/addressbook/abook_test.py index 32be2cbe..c5686caf 100644 --- a/tests/addressbook/abook_test.py +++ b/tests/addressbook/abook_test.py @@ -29,7 +29,7 @@ class TestAbookAddressBook(unittest.TestCase): name = you email = you@other.domain, you@example.com """ - with tempfile.NamedTemporaryFile(delete=False) as tmp: + with tempfile.NamedTemporaryFile(mode='w+', delete=False) as tmp: tmp.write(data) path = tmp.name self.addCleanup(os.unlink, path) |