tests: bulk change to avoid "unneeded trailing ',' ..." error of check-code.py
authorFUJIWARA Katsunori <foozy@lares.dti.ne.jp>
Mon, 18 Feb 2019 00:27:25 +0900
changeset 41734 6462bbb91b53
parent 41733 d7ce1ea7a5f2
child 41735 67333663d49e
tests: bulk change to avoid "unneeded trailing ',' ..." error of check-code.py This is a part of preparation to apply checking with check-code.py on code fragments embedded in *.t test scripts. "trailing ','" at the end of command option list in the code fragment of test-bundle2-format.t is still left as it is, in order to follow the style of command definitions in Mercurial core.
tests/test-bundle2-format.t
tests/test-clone.t
--- a/tests/test-bundle2-format.t	Mon Feb 18 00:27:25 2019 +0900
+++ b/tests/test-bundle2-format.t	Mon Feb 18 00:27:25 2019 +0900
@@ -82,7 +82,8 @@
   >           (b'', b'genraise', False, b'includes a part that raise an exception during generation'),
   >           (b'', b'timeout', False, b'emulate a timeout during bundle generation'),
   >           (b'r', b'rev', [], b'includes those changeset in the bundle'),
-  >           (b'', b'compress', b'', b'compress the stream'),],
+  >           (b'', b'compress', b'', b'compress the stream'),
+  >          ],
   >          b'[OUTPUTFILE]')
   > def cmdbundle2(ui, repo, path=None, **opts):
   >     """write a bundle2 container on standard output"""
--- a/tests/test-clone.t	Mon Feb 18 00:27:25 2019 +0900
+++ b/tests/test-clone.t	Mon Feb 18 00:27:25 2019 +0900
@@ -569,7 +569,7 @@
   > extensions.loadall(myui)
   > extensions.populateui(myui)
   > repo = hg.repository(myui, b'a')
-  > hg.clone(myui, {}, repo, dest=b"ua", branch=[b"stable",])
+  > hg.clone(myui, {}, repo, dest=b"ua", branch=[b"stable"])
   > EOF
 
   $ "$PYTHON" branchclone.py