# HG changeset patch # User FUJIWARA Katsunori # Date 1550417245 -32400 # Node ID 6462bbb91b5306ad736c2f5f182a0534e56be41f # Parent d7ce1ea7a5f22ab076612cfd9a594d5e01998e66 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. diff -r d7ce1ea7a5f2 -r 6462bbb91b53 tests/test-bundle2-format.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""" diff -r d7ce1ea7a5f2 -r 6462bbb91b53 tests/test-clone.t --- 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