summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2016-02-15 12:30:31 -0500
committerNed Batchelder <ned@nedbatchelder.com>2016-02-15 12:30:31 -0500
commit20033c71012732c181b3997e454f42edc46d44fd (patch)
treeca145e1dd4880b0c345c76791d3dbcf749cc1c20 /tests
parentbabe79f03ea50e26accc397480e1dee2ea53152e (diff)
downloadpython-coveragepy-git-20033c71012732c181b3997e454f42edc46d44fd.tar.gz
Pick off some lint
Diffstat (limited to 'tests')
-rw-r--r--tests/test_html.py14
-rw-r--r--tests/test_parser.py3
2 files changed, 12 insertions, 5 deletions
diff --git a/tests/test_html.py b/tests/test_html.py
index 67c6d9b6..e67e4f5b 100644
--- a/tests/test_html.py
+++ b/tests/test_html.py
@@ -525,12 +525,18 @@ class HtmlGoldTests(CoverageGoldTest):
'<span class="num">3</span>'),
'<span class="pc_cov">70%</span>',
('<span class="annotate short">8&#x202F;&#x219B;&#x202F;11</span>'
- '<span class="annotate long">line 8 didn\'t jump to line 11, because the condition on line 8 was never false</span>'),
+ '<span class="annotate long">line 8 didn\'t jump to line 11, '
+ 'because the condition on line 8 was never false</span>'),
('<span class="annotate short">17&#x202F;&#x219B;&#x202F;exit</span>'
- '<span class="annotate long">line 17 didn\'t return from function \'two\', because the condition on line 17 was never false</span>'),
+ '<span class="annotate long">line 17 didn\'t return from function \'two\', '
+ 'because the condition on line 17 was never false</span>'),
('<span class="annotate short">25&#x202F;&#x219B;&#x202F;26,&nbsp;&nbsp; '
- '25&#x202F;&#x219B;&#x202F;28</span>'
- '<span class="annotate long">2 missed branches: 1) line 25 didn\'t jump to line 26, because the condition on line 25 was never true, 2) line 25 didn\'t jump to line 28, because the condition on line 25 was never false</span>'),
+ '25&#x202F;&#x219B;&#x202F;28</span>'
+ '<span class="annotate long">2 missed branches: '
+ '1) line 25 didn\'t jump to line 26, '
+ 'because the condition on line 25 was never true, '
+ '2) line 25 didn\'t jump to line 28, '
+ 'because the condition on line 25 was never false</span>'),
)
contains(
"out/b_branch/index.html",
diff --git a/tests/test_parser.py b/tests/test_parser.py
index 1be5e16c..0ede10b4 100644
--- a/tests/test_parser.py
+++ b/tests/test_parser.py
@@ -224,7 +224,8 @@ class ParserMissingArcDescriptionTest(CoverageTest):
)
self.assertEqual(
parser.missing_arc_description(6, -5),
- "line 6 didn't return from function 'func5', because the loop on line 6 didn't complete"
+ "line 6 didn't return from function 'func5', "
+ "because the loop on line 6 didn't complete"
)
self.assertEqual(
parser.missing_arc_description(6, 7),