comparison tests/test-command-template.t @ 36548:086fc71fbb09

py3: mark all string literals in test-command-template.t as bytes # skip-blame because just b'' prefixes
author Yuya Nishihara <yuya@tcha.org>
date Thu, 01 Mar 2018 17:43:25 -0500
parents 106e93d16435
children e80f8a134731
comparison
equal deleted inserted replaced
36547:7840d8bd0558 36548:086fc71fbb09
4620 $ cat <<EOF > $TESTTMP/customfunc.py 4620 $ cat <<EOF > $TESTTMP/customfunc.py
4621 > from mercurial import registrar 4621 > from mercurial import registrar
4622 > 4622 >
4623 > templatefunc = registrar.templatefunc() 4623 > templatefunc = registrar.templatefunc()
4624 > 4624 >
4625 > @templatefunc('custom()') 4625 > @templatefunc(b'custom()')
4626 > def custom(context, mapping, args): 4626 > def custom(context, mapping, args):
4627 > return 'custom' 4627 > return b'custom'
4628 > EOF 4628 > EOF
4629 $ cat <<EOF > .hg/hgrc 4629 $ cat <<EOF > .hg/hgrc
4630 > [extensions] 4630 > [extensions]
4631 > customfunc = $TESTTMP/customfunc.py 4631 > customfunc = $TESTTMP/customfunc.py
4632 > EOF 4632 > EOF