diff tests/common.py @ 68:a0328b08e028

tests: open files in binary mode so new lines aren't converted
author Idan Kamara <idankk86@gmail.com>
date Fri, 09 Sep 2011 19:10:02 +0300
parents 730c42743ba3
children d1a42c1d0b61
line wrap: on
line diff
--- a/tests/common.py	Mon Sep 05 20:51:29 2011 +0300
+++ b/tests/common.py	Fri Sep 09 19:10:02 2011 +0300
@@ -41,7 +41,7 @@
             pass # if our setUp was overriden
 
     def append(self, path, *args):
-        f = open(path, 'a')
+        f = open(path, 'ab')
         for a in args:
             f.write(str(a))
         f.close()