# HG changeset patch # User Pulkit Goyal # Date 1539392933 -10800 # Node ID 6e7789064c2156a928fe306fb9ae71912c566e6c # Parent c17d73bf6a4def3eba59d68eee65fc6be184bbfa 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 diff -r c17d73bf6a4d -r 6e7789064c21 tests/test-help.t --- 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 < 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