changeset 35404:6ebe899b6551

py3: pass bytes from extension to ui.write() in test-revlog-mmapindex.t This makes the test pass on Python 3. Differential Revision: https://phab.mercurial-scm.org/D1674
author Pulkit Goyal <7895pulkit@gmail.com>
date Mon, 11 Dec 2017 05:26:46 +0530
parents 154e822bf514
children e66d6e938d2d
files tests/test-revlog-mmapindex.t
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-revlog-mmapindex.t	Sun Dec 10 06:36:48 2017 +0530
+++ b/tests/test-revlog-mmapindex.t	Mon Dec 11 05:26:46 2017 +0530
@@ -6,12 +6,13 @@
   > 
   > from mercurial import (
   >     extensions,
+  >     pycompat,
   >     util,
   > )
   > 
   > def extsetup(ui):
   >     def mmapread(orig, fp):
-  >         ui.write("mmapping %s\n" % fp.name)
+  >         ui.write(b"mmapping %s\n" % pycompat.bytestr(fp.name))
   >         ui.flush()
   >         return orig(fp)
   >