tests/test-atomictempfile.py
changeset 29188 f00f1de16454
parent 18666 fb9d1c2805ff
child 29194 3bea82dd4c4e
--- 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'))