py3: add b'' prefixes in tests/test-help.t
This takes us close to make the test passing.
# skip-blame because just b'' prefixes
Differential Revision: https://phab.mercurial-scm.org/D5028
--- a/tests/test-help.t Sat Oct 13 03:59:15 2018 +0300
+++ b/tests/test-help.t Sat Oct 13 04:08:53 2018 +0300
@@ -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