Parcourir la source

[2710] Terminate the last line of text

Michal 'vorner' Vaner il y a 12 ans
Parent
commit
3c243b229d
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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):
     def __enter__(self):
         with open(self.__path, 'w') as f:
         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):
     def __exit__(self, type, value, traceback):
         os.unlink(self.__path)
         os.unlink(self.__path)