summaryrefslogtreecommitdiff
path: root/tests/commands
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2018-02-22 19:34:19 -0800
committerDylan Baker <dylan@pnwbakers.com>2018-03-01 10:34:56 -0800
commit6c4e8c4e3919042b51c8ca95c2d219736976f2e1 (patch)
treef39f79a884fed4a3b86404d227969e915e34f6cf /tests/commands
parent301c471b496757676ee912888c5df2df399b48b1 (diff)
alot/command/envelope: py3k fixes
Diffstat (limited to 'tests/commands')
-rw-r--r--tests/commands/envelope_test.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/commands/envelope_test.py b/tests/commands/envelope_test.py
index c48a0d91..ee1c0acc 100644
--- a/tests/commands/envelope_test.py
+++ b/tests/commands/envelope_test.py
@@ -315,7 +315,7 @@ class TestSignCommand(unittest.TestCase):
""")
# Allow settings.reload to work by not deleting the file until the end
- with tempfile.NamedTemporaryFile(delete=False) as f:
+ with tempfile.NamedTemporaryFile(mode='w+', delete=False) as f:
f.write(config)
self.addCleanup(os.unlink, f.name)