diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2018-02-22 19:34:19 -0800 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2018-03-01 10:34:56 -0800 |
commit | 6c4e8c4e3919042b51c8ca95c2d219736976f2e1 (patch) | |
tree | f39f79a884fed4a3b86404d227969e915e34f6cf /tests/commands | |
parent | 301c471b496757676ee912888c5df2df399b48b1 (diff) |
alot/command/envelope: py3k fixes
Diffstat (limited to 'tests/commands')
-rw-r--r-- | tests/commands/envelope_test.py | 2 |
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) |