changeset 37383:cb70be32f5f7

py3: convert user value to bytes by b'' prefix This makes test-journal* pass on Python 3.5. # skip-blame beacuse just b'' prefix Differential Revision: https://phab.mercurial-scm.org/D3125
author Pulkit Goyal <7895pulkit@gmail.com>
date Thu, 05 Apr 2018 16:47:44 +0530
parents de9f9f888900
children 5c9d0af7b02e
files tests/test-journal-share.t tests/test-journal.t
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-journal-share.t	Thu Apr 05 10:13:01 2018 -0400
+++ b/tests/test-journal-share.t	Thu Apr 05 16:47:44 2018 +0530
@@ -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')
--- a/tests/test-journal.t	Thu Apr 05 10:13:01 2018 -0400
+++ b/tests/test-journal.t	Thu Apr 05 16:47:44 2018 +0530
@@ -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')