summaryrefslogtreecommitdiff
path: root/tests/test_execfile.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2023-01-05 07:12:49 -0500
committerNed Batchelder <ned@nedbatchelder.com>2023-01-05 12:55:18 -0500
commit8ff3c6dfe6207dc79ed7be5105675d2f08725b76 (patch)
tree326161486c3e239245fcab7bdc8c90be0a2f92e2 /tests/test_execfile.py
parent4ea850a695e3ab8e42d400dc9dceaebea9246081 (diff)
downloadpython-coveragepy-git-8ff3c6dfe6207dc79ed7be5105675d2f08725b76.tar.gz
mypy: Iterator is better than Generator
Diffstat (limited to 'tests/test_execfile.py')
-rw-r--r--tests/test_execfile.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_execfile.py b/tests/test_execfile.py
index 0b6afa61..90885794 100644
--- a/tests/test_execfile.py
+++ b/tests/test_execfile.py
@@ -14,7 +14,7 @@ import py_compile
import re
import sys
-from typing import Any, Generator
+from typing import Any, Iterator
import pytest
@@ -31,7 +31,7 @@ class RunFileTest(CoverageTest):
"""Test cases for `run_python_file`."""
@pytest.fixture(autouse=True)
- def clean_up(self) -> Generator[None, None, None]:
+ def clean_up(self) -> Iterator[None]:
"""These tests all run in-process. Clean up global changes."""
yield
sys.excepthook = sys.__excepthook__