diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2018-02-22 14:53:10 -0800 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2018-03-01 10:34:56 -0800 |
commit | a62f3797b7c665f235e41d7a6b7575c0f73e8f80 (patch) | |
tree | 1f1cd82a2d27d0d8be438fa2c09249e37781b761 /tests/addressbook | |
parent | 6f12a5b5edc6da86e629c5e8ec9b2089825ba3d8 (diff) |
tests/addressbook/abook_test: fix for py3k
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) |