+\n in writelines

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
Nico Schottelius 2011-09-27 15:47:56 +02:00
parent dc416f5f49
commit 3ebece5784
1 changed files with 2 additions and 2 deletions

View File

@ -46,11 +46,11 @@ class Exec(unittest.TestCase):
self.shell_true = os.path.join(self.temp_dir, "shell_true")
true_fd = open(self.shell_true, "w")
true_fd.writelines(["#!/bin/sh", "/bin/true"])
true_fd.writelines(["#!/bin/sh\n", "/bin/true"])
true_fd.close()
false_fd = open(self.shell_false, "w")
false_fd.writelines(["#!/bin/sh", "/bin/false"])
false_fd.writelines(["#!/bin/sh\n", "/bin/false"])
false_fd.close()
def tearDown(self):