# HG changeset patch # User Pulkit Goyal <7895pulkit@gmail.com> # Date 2017-12-10 23:56:46 # Node ID 6ebe899b6551bc0dbe1d2a8c80de6f557c842e01 # Parent 154e822bf5146f486f55e807b4b1a166668d9fdc 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 diff --git a/tests/test-revlog-mmapindex.t b/tests/test-revlog-mmapindex.t --- a/tests/test-revlog-mmapindex.t +++ b/tests/test-revlog-mmapindex.t @@ -6,12 +6,13 @@ create verbosemmap.py > > 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) >