Permalink
Browse files

tests: mkstemp_exec needs argument in bytes

  • Loading branch information...
tbabej committed Jan 2, 2019
1 parent cd52782 commit ef3c1bc090e2d4913016a7ab58d59de6ee1e164e
Showing with 2 additions and 2 deletions.
  1. +1 −1 test/edit.t
  2. +1 −1 test/tw-20.t
@@ -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

@@ -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

0 comments on commit ef3c1bc

Please sign in to comment.