--- a/tests/test-pager.t Sat May 13 17:53:55 2017 +0900
+++ b/tests/test-pager.t Sat Jan 09 23:07:20 2016 +0900
@@ -223,9 +223,9 @@
Pager should not override the exit code of other commands
$ cat >> $TESTTMP/fortytwo.py <<'EOF'
- > from mercurial import cmdutil, commands
+ > from mercurial import commands, registrar
> cmdtable = {}
- > command = cmdutil.command(cmdtable)
+ > command = registrar.command(cmdtable)
> @command('fortytwo', [], 'fortytwo', norepo=True)
> def fortytwo(ui, *opts):
> ui.write('42\n')