Patchwork D3125: py3: convert user value to bytes by b'' prefix

login
register
mail settings
Submitter phabricator
Date April 6, 2018, 12:41 p.m.
Message ID <bf18cbee372f5838274d99fa4779c68a@localhost.localdomain>
Download mbox | patch
Permalink /patch/30429/
State Not Applicable
Headers show

Comments

phabricator - April 6, 2018, 12:41 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGcb70be32f5f7: py3: convert user value to bytes by b&#039;&#039; prefix (authored by pulkit, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D3125?vs=7751&id=7773

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

AFFECTED FILES
  tests/test-journal-share.t
  tests/test-journal.t

CHANGE DETAILS




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

Patch

diff --git a/tests/test-journal.t b/tests/test-journal.t
--- a/tests/test-journal.t
+++ b/tests/test-journal.t
@@ -6,7 +6,7 @@ 
   > from mercurial import util, pycompat
   > from mercurial.utils import dateutil, procutil
   > def mockgetuser():
-  >     return 'foobar'
+  >     return b'foobar'
   > 
   > def mockmakedate():
   >     filename = os.path.join(os.environ['TESTTMP'], 'testtime')
diff --git a/tests/test-journal-share.t b/tests/test-journal-share.t
--- a/tests/test-journal-share.t
+++ b/tests/test-journal-share.t
@@ -6,7 +6,7 @@ 
   > from mercurial import util
   > from mercurial.utils import procutil
   > def mockgetuser():
-  >     return 'foobar'
+  >     return b'foobar'
   > 
   > def mockmakedate():
   >     filename = os.path.join(os.environ['TESTTMP'], 'testtime')