tests: mkstemp_exec needs argument in bytes

This commit is contained in:
Tomas Babej 2019-01-01 19:41:31 -05:00 committed by Paul Beckingham
parent 74949bb049
commit 3f97a034c7
2 changed files with 2 additions and 2 deletions

View file

@ -41,7 +41,7 @@ class TestTaskEdit(TestCase):
self.t = Task() self.t = Task()
# Workaround to always assume changes were introduced via "task edit" # Workaround to always assume changes were introduced via "task edit"
self.editor = mkstemp_exec("echo '' >> $1\n") self.editor = mkstemp_exec(b"echo '' >> $1\n")
self.t.env["VISUAL"] = self.editor self.t.env["VISUAL"] = self.editor

View file

@ -44,7 +44,7 @@ class TestBug20(TestCase):
self.t = Task() self.t = Task()
# Workaround to always assume changes were introduced via "task edit" # Workaround to always assume changes were introduced via "task edit"
self.editor = mkstemp_exec("echo '' >> $1\n") self.editor = mkstemp_exec(b"echo '' >> $1\n")
self.t.env["VISUAL"] = self.editor self.t.env["VISUAL"] = self.editor