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

login
register
mail settings
Submitter phabricator
Date April 5, 2018, 7:26 p.m.
Message ID <af7d0c4c4771ca19ee2b2b206c783a3f@localhost.localdomain>
Download mbox | patch
Permalink /patch/30404/
State Not Applicable
Headers show

Comments

phabricator - April 5, 2018, 7:26 p.m.
pulkit updated this revision to Diff 7751.
pulkit edited the summary of this revision.
pulkit retitled this revision from "py3: convert user value to bytes using pycompat.fsencode()" to "py3: convert user value to bytes by b'' prefix".

REPOSITORY
  rHG Mercurial

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

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