Mercurial > hg
changeset 38018:a9ffb4a577d0
py3: add b'' prefixes in tests/test-extension.t
# skip-blame because just b'' prefixes
Differential Revision: https://phab.mercurial-scm.org/D3564
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Thu, 15 Feb 2018 17:15:21 +0530 |
parents | 6660b90805c6 |
children | 2f406142d7b4 |
files | tests/test-extension.t |
diffstat | 1 files changed, 6 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test-extension.t Fri Apr 27 20:55:10 2018 +0530 +++ b/tests/test-extension.t Thu Feb 15 17:15:21 2018 +0530 @@ -460,7 +460,7 @@ > result.append(absdetail) > result.append(legacydetail) > result.append(proxied.detail) - > ui.write('LIB: %s\n' % '\nLIB: '.join(result)) + > ui.write(b'LIB: %s\n' % '\nLIB: '.join(result)) > EOF Examine module importing. @@ -1283,7 +1283,7 @@ If the extensions declare outdated versions, accuse the older extension first: $ echo "from mercurial import util" >> older.py - $ echo "util.version = lambda:'2.2'" >> older.py + $ echo "util.version = lambda:b'2.2'" >> older.py $ echo "testedwith = b'1.9.3'" >> older.py $ echo "testedwith = b'2.1.1'" >> throw.py $ rm -f throw.pyc throw.pyo @@ -1388,7 +1388,7 @@ Enabled extensions: throw external 1.2.3 - $ echo 'getversion = lambda: "1.twentythree"' >> throw.py + $ echo 'getversion = lambda: b"1.twentythree"' >> throw.py $ rm -f throw.pyc throw.pyo $ rm -Rf __pycache__ $ hg version -v --config extensions.throw=throw.py --config extensions.strip= @@ -1678,7 +1678,7 @@ > def exbookmarks(orig, *args, **opts): > return orig(*args, **opts) > def uisetup(ui): - > synopsis = ' GREPME [--foo] [-x]' + > synopsis = b' GREPME [--foo] [-x]' > docstring = ''' > GREPME make sure that this is in the help! > ''' @@ -1713,9 +1713,9 @@ > from mercurial import registrar > cmdtable = {} > command = registrar.command(cmdtable) - > @command(b'dummy', [('', 'opt', u'value', u'help')], 'ext [OPTIONS]') + > @command(b'dummy', [(b'', b'opt', u'value', u'help')], 'ext [OPTIONS]') > def ext(*args, **opts): - > print(opts['opt']) + > print(opts[b'opt']) > EOF $ cat > $TESTTMP/opt-unicode-default/.hg/hgrc << EOF > [extensions]