summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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(