diff options
Diffstat (limited to 'tests/test_annotate.py')
-rw-r--r-- | tests/test_annotate.py | 12 |
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: |