tests: mkstemp_exec needs argument in bytes

This commit is contained in:
Tomas Babej 2019-01-01 19:41:31 -05:00
parent cd52782d2f
commit ef3c1bc090
2 changed files with 2 additions and 2 deletions

View file

@ -41,7 +41,7 @@ class TestTaskEdit(TestCase):
self.t = Task()
# 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

View file

@ -44,7 +44,7 @@ class TestBug20(TestCase):
self.t = Task()
# 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