From 6c4e8c4e3919042b51c8ca95c2d219736976f2e1 Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Thu, 22 Feb 2018 19:34:19 -0800 Subject: alot/command/envelope: py3k fixes --- tests/commands/envelope_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') 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) -- cgit v1.2.3