diff options
author | Ran Benita <ran@unusedvar.com> | 2020-05-01 14:40:15 +0300 |
---|---|---|
committer | Ran Benita <ran@unusedvar.com> | 2020-06-05 11:34:19 +0300 |
commit | 247c4c0482888b18203589a2d0461d598bd2d817 (patch) | |
tree | 917e1946bc1a161457d159b468a7940b3efd66bb /testing/test_runner.py | |
parent | ef347295418451e1f09bfb9af1a77aba10b3e71c (diff) | |
download | pytest-247c4c0482888b18203589a2d0461d598bd2d817.tar.gz |
Type annotate some more hooks & impls
Diffstat (limited to 'testing/test_runner.py')
-rw-r--r-- | testing/test_runner.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/testing/test_runner.py b/testing/test_runner.py index 32620801d..be79b14fd 100644 --- a/testing/test_runner.py +++ b/testing/test_runner.py @@ -884,7 +884,7 @@ def test_store_except_info_on_error() -> None: raise IndexError("TEST") try: - runner.pytest_runtest_call(ItemMightRaise()) + runner.pytest_runtest_call(ItemMightRaise()) # type: ignore[arg-type] # noqa: F821 except IndexError: pass # Check that exception info is stored on sys @@ -895,7 +895,7 @@ def test_store_except_info_on_error() -> None: # The next run should clear the exception info stored by the previous run ItemMightRaise.raise_error = False - runner.pytest_runtest_call(ItemMightRaise()) + runner.pytest_runtest_call(ItemMightRaise()) # type: ignore[arg-type] # noqa: F821 assert not hasattr(sys, "last_type") assert not hasattr(sys, "last_value") assert not hasattr(sys, "last_traceback") |