Skip to content
Permalink
Browse files

tests: mkstemp_exec needs argument in bytes

  • Loading branch information...
tbabej authored and pbeckingham committed Jan 2, 2019
1 parent 74949bb commit 3f97a034c75cd547cf34268bc1508a9926aa5e2d
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 3f97a03

Please sign in to comment.
You can’t perform that action at this time.