summaryrefslogtreecommitdiff
path: root/tests/coveragetest.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/coveragetest.py')
-rw-r--r--tests/coveragetest.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/coveragetest.py b/tests/coveragetest.py
index 9b3e3342..100b8e3b 100644
--- a/tests/coveragetest.py
+++ b/tests/coveragetest.py
@@ -19,7 +19,7 @@ import sys
from types import ModuleType
from typing import (
- Any, Collection, Dict, Generator, Iterable, List, Mapping, Optional,
+ Any, Collection, Dict, Iterable, Iterator, List, Mapping, Optional,
Sequence, Tuple, Union,
)
@@ -272,7 +272,7 @@ class CoverageTest(
cov: Coverage,
warnings: Iterable[str],
not_warnings: Iterable[str]=(),
- ) -> Generator[None, None, None]:
+ ) -> Iterator[None]:
"""A context manager to check that particular warnings happened in `cov`.
`cov` is a Coverage instance. `warnings` is a list of regexes. Every