--- 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'))