diff options
Diffstat (limited to 'tests/test_execfile.py')
-rw-r--r-- | tests/test_execfile.py | 4 |
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__ |