From 3ebece5784bf64f1e961a5d8fdae1a4da8d52507 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Tue, 27 Sep 2011 15:47:56 +0200 Subject: [PATCH] +\n in writelines Signed-off-by: Nico Schottelius --- test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test.py b/test.py index 44068d52..8a797d98 100755 --- a/test.py +++ b/test.py @@ -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):