Mercurial > public > mercurial-scm > python-hglib
diff tests/test-import.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 | 400cb1520834 |
children | 9746227239e0 |
line wrap: on
line diff
--- a/tests/test-import.py Mon Sep 05 20:51:29 2011 +0300 +++ b/tests/test-import.py Fri Sep 09 19:10:02 2011 +0300 @@ -22,6 +22,6 @@ self.assertEquals(self.client.cat(['a']), '1\n') def test_basic_file(self): - open('patch', 'w').write(patch) + open('patch', 'wb').write(patch) self.client.import_(['patch']) self.assertEquals(self.client.cat(['a']), '1\n')