summaryrefslogtreecommitdiff
path: root/tests/test_annotate.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2023-01-02 22:03:59 -0500
committerNed Batchelder <ned@nedbatchelder.com>2023-01-02 22:03:59 -0500
commit0b05b45e342813b34d906e840e253a06b37133ae (patch)
treeff38df2bfdc0faed5d1cd0d1fc42630c9e487192 /tests/test_annotate.py
parent2090f79d4a0447f4d3744ea957fcebd951f0b843 (diff)
downloadpython-coveragepy-git-0b05b45e342813b34d906e840e253a06b37133ae.tar.gz
mypy: test_annotate.py test_arcs.py test_collector.py
Diffstat (limited to 'tests/test_annotate.py')
-rw-r--r--tests/test_annotate.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/test_annotate.py b/tests/test_annotate.py
index e2d49f25..99ce2694 100644
--- a/tests/test_annotate.py
+++ b/tests/test_annotate.py
@@ -12,7 +12,7 @@ from tests.goldtest import compare, gold_path
class AnnotationGoldTest(CoverageTest):
"""Test the annotate feature with gold files."""
- def make_multi(self):
+ def make_multi(self) -> None:
"""Make a few source files we need for the tests."""
self.make_file("multi.py", """\
import a.a
@@ -36,7 +36,7 @@ class AnnotationGoldTest(CoverageTest):
print(msg)
""")
- def test_multi(self):
+ def test_multi(self) -> None:
self.make_multi()
cov = coverage.Coverage()
self.start_import_stop(cov, "multi")
@@ -44,7 +44,7 @@ class AnnotationGoldTest(CoverageTest):
compare(gold_path("annotate/multi"), ".", "*,cover")
- def test_annotate_dir(self):
+ def test_annotate_dir(self) -> None:
self.make_multi()
cov = coverage.Coverage(source=["."])
self.start_import_stop(cov, "multi")
@@ -52,7 +52,7 @@ class AnnotationGoldTest(CoverageTest):
compare(gold_path("annotate/anno_dir"), "out_anno_dir", "*,cover")
- def test_encoding(self):
+ def test_encoding(self) -> None:
self.make_file("utf8.py", """\
# -*- coding: utf-8 -*-
# This comment has an accent: é
@@ -64,7 +64,7 @@ class AnnotationGoldTest(CoverageTest):
cov.annotate()
compare(gold_path("annotate/encodings"), ".", "*,cover")
- def test_white(self):
+ def test_white(self) -> None:
self.make_file("white.py", """\
# A test case sent to me by Steve White
@@ -106,7 +106,7 @@ class AnnotationGoldTest(CoverageTest):
cov.annotate()
compare(gold_path("annotate/white"), ".", "*,cover")
- def test_missing_after_else(self):
+ def test_missing_after_else(self) -> None:
self.make_file("mae.py", """\
def f(x):
if x == 1: