Remove unused caplog fixtures in tests (#119056)

This commit is contained in:
epenet 2024-06-07 11:38:56 +02:00 committed by GitHub
parent b3a71dcea3
commit 1c8a9cc3b8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 8 additions and 21 deletions

View file

@ -43,7 +43,7 @@ async def test_protect_loop_debugger_sleep(caplog: pytest.LogCaptureFixture) ->
assert "Detected blocking call inside the event loop" not in caplog.text
async def test_protect_loop_sleep(caplog: pytest.LogCaptureFixture) -> None:
async def test_protect_loop_sleep() -> None:
"""Test time.sleep not injected by the debugger raises."""
block_async_io.enable()
frames = extract_stack_to_frame(
@ -71,9 +71,7 @@ async def test_protect_loop_sleep(caplog: pytest.LogCaptureFixture) -> None:
time.sleep(0)
async def test_protect_loop_sleep_get_current_frame_raises(
caplog: pytest.LogCaptureFixture,
) -> None:
async def test_protect_loop_sleep_get_current_frame_raises() -> None:
"""Test time.sleep when get_current_frame raises ValueError."""
block_async_io.enable()
frames = extract_stack_to_frame(