tests: mark test-atomictempfile.py write as binary
authortimeless <timeless@mozdev.org>
Wed, 20 Apr 2016 19:55:59 +0000
changeset 29188 f00f1de16454
parent 29187 aec5d8561be2
child 29189 930d4ee4647e
tests: mark test-atomictempfile.py write as binary
tests/test-atomictempfile.py
--- 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'))