Mercurial > python-hglib
diff tests/test-update.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 | f6e1d9a6e0cd |
children | 86ff8611a8fa |
line wrap: on
line diff
--- a/tests/test-update.py Mon Sep 05 20:51:29 2011 +0300 +++ b/tests/test-update.py Fri Sep 09 19:10:02 2011 +0300 @@ -33,7 +33,7 @@ self.client.commit('fourth') self.client.update(rev2) old = open('a').read() - open('a', 'w').write('a' + old) + open('a', 'wb').write('a' + old) u, m, r, ur = self.client.update() self.assertEquals(u, 0) self.assertEquals(m, 1)