tests: bulk changes to avoid "omit superfluous pass" check-code.py error
authorFUJIWARA Katsunori <foozy@lares.dti.ne.jp>
Mon, 18 Feb 2019 00:27:25 +0900
changeset 41736 9897e95b0b4a
parent 41735 67333663d49e
child 41737 cab32f08c994
tests: bulk changes to avoid "omit superfluous pass" check-code.py error This is a part of preparation to apply checking with check-code.py on code fragments embedded in *.t test scripts.
tests/test-extension.t
tests/test-help.t
--- a/tests/test-extension.t	Mon Feb 18 00:27:25 2019 +0900
+++ b/tests/test-extension.t	Mon Feb 18 00:27:25 2019 +0900
@@ -688,13 +688,11 @@
   > @command(b'debugfoobar', [], b'hg debugfoobar')
   > def debugfoobar(ui, repo, *args, **opts):
   >     "yet another debug command"
-  >     pass
   > @command(b'foo', [], b'hg foo')
   > def foo(ui, repo, *args, **opts):
   >     """yet another foo command
   >     This command has been DEPRECATED since forever.
   >     """
-  >     pass
   > EOF
   $ debugpath=`pwd`/debugextension.py
   $ echo "debugextension = $debugpath" >> $HGRCPATH
@@ -964,7 +962,6 @@
   > @command(b'multirevs', [], b'ARG', norepo=True)
   > def multirevs(ui, repo, arg, *args, **opts):
   >     """multirevs command"""
-  >     pass
   > EOF
   $ echo "multirevs = multirevs.py" >> $HGRCPATH
 
--- a/tests/test-help.t	Mon Feb 18 00:27:25 2019 +0900
+++ b/tests/test-help.t	Mon Feb 18 00:27:25 2019 +0900
@@ -825,7 +825,6 @@
   > @command(b'hashelp', [], b'hg hashelp', norepo=True)
   > def hashelp(ui, *args, **kwargs):
   >     """Extension command's help"""
-  >     pass
   > 
   > def uisetup(ui):
   >     ui.setconfig(b'alias', b'shellalias', b'!echo hi', b'helpext')