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

FUJIWARA Katsunori foozy at lares.dti.ne.jp
Thu Feb 28 18:16:11 UTC 2019


# HG changeset patch
# User FUJIWARA Katsunori <foozy at 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 \

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)


More information about the Mercurial-devel mailing list