D5028: py3: add b'' prefixes in tests/test-help.t
pulkit (Pulkit Goyal)
phabricator at mercurial-scm.org
Sat Oct 13 05:05:00 UTC 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG6e7789064c21: py3: add b'' prefixes in tests/test-help.t (authored by pulkit, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D5028?vs=11962&id=11983
REVISION DETAIL
https://phab.mercurial-scm.org/D5028
AFFECTED FILES
tests/test-help.t
CHANGE DETAILS
diff --git a/tests/test-help.t b/tests/test-help.t
--- a/tests/test-help.t
+++ b/tests/test-help.t
@@ -1503,19 +1503,19 @@
> from mercurial import help
>
> def rewrite(ui, topic, doc):
- > return doc + '\nhelphook1\n'
+ > return doc + b'\nhelphook1\n'
>
> def extsetup(ui):
- > help.addtopichook('revisions', rewrite)
+ > help.addtopichook(b'revisions', rewrite)
> EOF
$ cat > helphook2.py <<EOF
> from mercurial import help
>
> def rewrite(ui, topic, doc):
- > return doc + '\nhelphook2\n'
+ > return doc + b'\nhelphook2\n'
>
> def extsetup(ui):
- > help.addtopichook('revisions', rewrite)
+ > help.addtopichook(b'revisions', rewrite)
> EOF
$ echo '[extensions]' >> $HGRCPATH
$ echo "helphook1 = `pwd`/helphook1.py" >> $HGRCPATH
@@ -1642,7 +1642,7 @@
> '''
> from __future__ import absolute_import
> from mercurial import commands, help
- > testtopic = """This paragraph is never omitted (for topic).
+ > testtopic = b"""This paragraph is never omitted (for topic).
>
> .. container:: verbose
>
@@ -1652,8 +1652,8 @@
> This paragraph is never omitted, too (for topic)
> """
> def extsetup(ui):
- > help.helptable.append((["topic-containing-verbose"],
- > "This is the topic to test omit indicating.",
+ > help.helptable.append(([b"topic-containing-verbose"],
+ > b"This is the topic to test omit indicating.",
> lambda ui: testtopic))
> EOF
$ echo '[extensions]' >> $HGRCPATH
To: pulkit, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list