Patchwork [1,of,7] tests: remove useless line wrapping in a code fragment embedded in test script

login
register
mail settings
Submitter Katsunori FUJIWARA
Date Feb. 28, 2019, 6:16 p.m.
Message ID <c3bccf551e129e0ed8dd.1551377771@footprints>
Download mbox | patch
Permalink /patch/38970/
State Accepted
Headers show

Comments

Katsunori FUJIWARA - Feb. 28, 2019, 6:16 p.m.
# HG changeset patch
# User FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
# Date 1551376312 -32400
#      Fri Mar 01 02:51:52 2019 +0900
# Node ID c3bccf551e129e0ed8dd7c3c0b5d06cd4314a42a
# Parent  78027e7bc54426e0b7d5a2c9ba3b428f314ccd1a
# Available At https://bitbucket.org/foozy/mercurial-wip
#              hg pull https://bitbucket.org/foozy/mercurial-wip -r c3bccf551e12
# EXP-Topic tests-check-embedded-code
tests: remove useless line wrapping in a code fragment embedded in test script

This is a part of preparation to apply checking with check-code.py on
code fragments embedded in *.t test scripts.

This revision avoids error of check-code.py below.

    Use () to wrap long lines in Python, not \
Yuya Nishihara - March 2, 2019, 1:16 a.m.
On Fri, 01 Mar 2019 03:16:11 +0900, FUJIWARA Katsunori wrote:
> # HG changeset patch
> # User FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
> # Date 1551376312 -32400
> #      Fri Mar 01 02:51:52 2019 +0900
> # Node ID c3bccf551e129e0ed8dd7c3c0b5d06cd4314a42a
> # Parent  78027e7bc54426e0b7d5a2c9ba3b428f314ccd1a
> # Available At https://bitbucket.org/foozy/mercurial-wip
> #              hg pull https://bitbucket.org/foozy/mercurial-wip -r c3bccf551e12
> # EXP-Topic tests-check-embedded-code
> tests: remove useless line wrapping in a code fragment embedded in test script

Queued, thanks.

Patch

diff --git a/tests/test-commit-multiple.t b/tests/test-commit-multiple.t
--- a/tests/test-commit-multiple.t
+++ b/tests/test-commit-multiple.t
@@ -95,8 +95,7 @@  now test that we fixed the bug for all s
   >                                       for f in repo[rev].files())))
   > 
   > repo = hg.repository(uimod.ui.load(), b'.')
-  > assert len(repo) == 6, \
-  >        "initial: len(repo): %d, expected: 6" % len(repo)
+  > assert len(repo) == 6, "initial: len(repo): %d, expected: 6" % len(repo)
   > 
   > replacebyte(b"bugfix", b"u")
   > time.sleep(2)