Browse Source

[2710] Terminate the last line of text

Michal 'vorner' Vaner 12 years ago
parent
commit
3c243b229d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/bin/cmdctl/tests/cmdctl_test.py

+ 1 - 1
src/bin/cmdctl/tests/cmdctl_test.py

@@ -99,7 +99,7 @@ class TmpTextFile:
 
     def __enter__(self):
         with open(self.__path, 'w') as f:
-            f.write("\n".join(self.__contents))
+            f.write("\n".join(self.__contents) + "\n")
 
     def __exit__(self, type, value, traceback):
         os.unlink(self.__path)