Rename variable in async tests (#122996)

pull/123004/head
epenet 2024-08-01 09:20:21 +02:00 committed by GitHub
parent 2fd3c42e63
commit d16a2fac80
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 1 deletions

View File

@ -14,7 +14,9 @@ from tests.common import extract_stack_to_frame
@patch("concurrent.futures.Future")
@patch("threading.get_ident")
def test_run_callback_threadsafe_from_inside_event_loop(mock_ident, _) -> None:
def test_run_callback_threadsafe_from_inside_event_loop(
mock_ident: MagicMock, mock_future: MagicMock
) -> None:
"""Testing calling run_callback_threadsafe from inside an event loop."""
callback = MagicMock()