tests: remove useless line wrapping in a code fragment embedded in test script
authorFUJIWARA Katsunori <foozy@lares.dti.ne.jp>
Fri, 01 Mar 2019 02:51:52 +0900
changeset 41820 9d38b4b52061
parent 41819 688fc33e105d
child 41821 14e8d042993a
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 \
tests/test-commit-multiple.t
--- a/tests/test-commit-multiple.t	Wed Feb 27 12:40:18 2019 +0100
+++ b/tests/test-commit-multiple.t	Fri Mar 01 02:51:52 2019 +0900
@@ -95,8 +95,7 @@
   >                                       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)