Mercurial > python-hglib
comparison 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 |
comparison
equal
deleted
inserted
replaced
67:730c42743ba3 | 68:a0328b08e028 |
---|---|
39 shutil.rmtree(self._testtmp) | 39 shutil.rmtree(self._testtmp) |
40 except AttributeError: | 40 except AttributeError: |
41 pass # if our setUp was overriden | 41 pass # if our setUp was overriden |
42 | 42 |
43 def append(self, path, *args): | 43 def append(self, path, *args): |
44 f = open(path, 'a') | 44 f = open(path, 'ab') |
45 for a in args: | 45 for a in args: |
46 f.write(str(a)) | 46 f.write(str(a)) |
47 f.close() | 47 f.close() |