Add type annotations

This commit is contained in:
Josias Aurel
2020-11-11 05:02:32 +01:00
committed by GitHub
parent 1ed8159c7d
commit 06a597db14

View File

@@ -87,7 +87,7 @@ def test_timeout(pytester: Pytester, enabled: bool) -> None:
@pytest.mark.parametrize("hook_name", ["pytest_enter_pdb", "pytest_exception_interact"])
def test_cancel_timeout_on_hook(monkeypatch, hook_name):
def test_cancel_timeout_on_hook(monkeypatch, hook_name) -> None:
"""Make sure that we are cancelling any scheduled traceback dumping due
to timeout before entering pdb (pytest-dev/pytest-faulthandler#12) or any
other interactive exception (pytest-dev/pytest-faulthandler#14)."""