Mercurial > hg-stable
comparison tests/test-pager-legacy.t @ 33109:fce4ed2912bb
py3: make sure commands name are bytes in tests
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Sun, 25 Jun 2017 08:20:05 +0530 |
parents | 75be14993fda |
children | 274811627808 |
comparison
equal
deleted
inserted
replaced
33108:d9962854a4a2 | 33109:fce4ed2912bb |
---|---|
215 | 215 |
216 $ cat >> $TESTTMP/fortytwo.py <<'EOF' | 216 $ cat >> $TESTTMP/fortytwo.py <<'EOF' |
217 > from mercurial import registrar, commands | 217 > from mercurial import registrar, commands |
218 > cmdtable = {} | 218 > cmdtable = {} |
219 > command = registrar.command(cmdtable) | 219 > command = registrar.command(cmdtable) |
220 > @command('fortytwo', [], 'fortytwo', norepo=True) | 220 > @command(b'fortytwo', [], 'fortytwo', norepo=True) |
221 > def fortytwo(ui, *opts): | 221 > def fortytwo(ui, *opts): |
222 > ui.write('42\n') | 222 > ui.write('42\n') |
223 > return 42 | 223 > return 42 |
224 > EOF | 224 > EOF |
225 | 225 |