Patchwork D1674: py3: pass bytes from extension to ui.write() in test-revlog-mmapindex.t

login
register
mail settings
Submitter phabricator
Date Dec. 13, 2017, 1:05 p.m.
Message ID <95a6288e011951b0f2a2b994c00bfa0f@localhost.localdomain>
Download mbox | patch
Permalink /patch/26269/
State Not Applicable
Headers show

Comments

phabricator - Dec. 13, 2017, 1:05 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG4786ad4b5d54: py3: pass bytes from extension to ui.write() in test-revlog-mmapindex.t (authored by pulkit, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D1674?vs=4399&id=4422

REVISION DETAIL
  https://phab.mercurial-scm.org/D1674

AFFECTED FILES
  tests/test-revlog-mmapindex.t

CHANGE DETAILS




To: pulkit, #hg-reviewers, yuja
Cc: mercurial-devel

Patch

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