Mercurial > hg
changeset 29188:f00f1de16454
tests: mark test-atomictempfile.py write as binary
author | timeless <timeless@mozdev.org> |
---|---|
date | Wed, 20 Apr 2016 19:55:59 +0000 |
parents | aec5d8561be2 |
children | 930d4ee4647e |
files | tests/test-atomictempfile.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test-atomictempfile.py Wed Apr 20 19:53:01 2016 +0000 +++ b/tests/test-atomictempfile.py Wed Apr 20 19:55:59 2016 +0000 @@ -14,7 +14,7 @@ self.assertFalse(os.path.isfile('foo')) self.assertTrue(basename in glob.glob('.foo-*')) - file.write('argh\n') + file.write(b'argh\n') file.close() self.assertTrue(os.path.isfile('foo')) @@ -27,7 +27,7 @@ file = atomictempfile('foo') (dir, basename) = os.path.split(file._tempname) - file.write('yo\n') + file.write(b'yo\n') file.discard() self.assertFalse(os.path.isfile('foo'))