Patchwork D3599: py3: add b'' prefixes in tests/test-profile.t

login
register
mail settings
Submitter phabricator
Date May 19, 2018, 7:39 p.m.
Message ID <c1aeffdc39cafd43743200fb99baf350@localhost.localdomain>
Download mbox | patch
Permalink /patch/31721/
State Not Applicable
Headers show

Comments

phabricator - May 19, 2018, 7:39 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGfd8eedcc3fd2: py3: add b&#039;&#039; prefixes in tests/test-profile.t (authored by pulkit, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D3599?vs=8770&id=8804

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

AFFECTED FILES
  tests/test-profile.t

CHANGE DETAILS




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

Patch

diff --git a/tests/test-profile.t b/tests/test-profile.t
--- a/tests/test-profile.t
+++ b/tests/test-profile.t
@@ -69,7 +69,7 @@ 
   > from mercurial import registrar, commands
   > cmdtable = {}
   > command = registrar.command(cmdtable)
-  > @command(b'sleep', [], 'hg sleep')
+  > @command(b'sleep', [], b'hg sleep')
   > def sleep(ui, *args, **kwargs):
   >     time.sleep(0.1)
   > EOF
@@ -123,13 +123,13 @@ 
   >     yield
   >     print('fooprof: end profile')
   > def extsetup(ui):
-  >     ui.write('fooprof: loaded\n')
+  >     ui.write(b'fooprof: loaded\n')
   > EOF
 
   $ cat > otherextension.py <<EOF
   > from __future__ import absolute_import
   > def extsetup(ui):
-  >     ui.write('otherextension: loaded\n')
+  >     ui.write(b'otherextension: loaded\n')
   > EOF
 
   $ hg init b