summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2018-11-18 12:22:48 -0500
committerNed Batchelder <ned@nedbatchelder.com>2018-11-18 12:23:05 -0500
commit43e8112bb2b2b8010e42b72639e32bf80ebc3004 (patch)
tree5c78b31f7ad36752bed3580a7dd35bf0d9903be8
parent740d257d6c6a1bd26900af5115aa9cfa2d3a8b40 (diff)
downloadpython-coveragepy-git-43e8112bb2b2b8010e42b72639e32bf80ebc3004.tar.gz
Lint cleanup
-rw-r--r--tests/test_annotate.py2
-rw-r--r--tests/test_html.py5
2 files changed, 4 insertions, 3 deletions
diff --git a/tests/test_annotate.py b/tests/test_annotate.py
index 65054ffd..3c2b1a2c 100644
--- a/tests/test_annotate.py
+++ b/tests/test_annotate.py
@@ -11,8 +11,10 @@ from tests.goldtest import compare, gold_path
class AnnotationGoldTest1(CoverageTest):
+ """Test the annotate feature with gold files."""
def make_multi(self):
+ """Make a few source files we need for the tests."""
self.make_file("multi.py", """\
import a.a
import b.b
diff --git a/tests/test_html.py b/tests/test_html.py
index bd6f7bd8..64be3cb6 100644
--- a/tests/test_html.py
+++ b/tests/test_html.py
@@ -995,10 +995,9 @@ assert len(math) == 18
surrogate = "db40,dd00: x󠄀"
""")
- # pylint: disable=import-error, redefined-builtin
cov = coverage.Coverage()
- unicode = self.start_import_stop(cov, "unicode")
- cov.html_report(unicode, directory="out")
+ unimod = self.start_import_stop(cov, "unicode")
+ cov.html_report(unimod, directory="out")
compare_html(gold_path("html/unicode"), "out")
contains(