[PATCH 10 of 10] tests: mark test-atomictempfile.py write as binary
timeless
timeless at fmr.im
Wed May 11 21:23:18 EDT 2016
# HG changeset patch
# User timeless <timeless at mozdev.org>
# Date 1461182159 0
# Wed Apr 20 19:55:59 2016 +0000
# Node ID 8ec439633609e0855f5505fa4a6b22a457ea83fb
# Parent 0fb40274d36c42e8fe4eb70166fb5d85496a94f3
# Available At bb://timeless/mercurial-crew
# hg pull bb://timeless/mercurial-crew -r 8ec439633609
tests: mark test-atomictempfile.py write as binary
diff -r 0fb40274d36c -r 8ec439633609 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'))
More information about the Mercurial-devel
mailing list