Add return type to async tests without arguments (#87612)

This commit is contained in:
epenet
2023-02-07 10:26:56 +01:00
committed by GitHub
parent ea32a2ae63
commit aa00114c2f
51 changed files with 117 additions and 117 deletions

View File

@@ -57,7 +57,7 @@ class _EmptyClass:
"""An empty class."""
async def test_deadlock_safe_shutdown_no_threads():
async def test_deadlock_safe_shutdown_no_threads() -> None:
"""Test we can shutdown without deadlock without any threads to join."""
dead_thread_mock = Mock(
@@ -78,7 +78,7 @@ async def test_deadlock_safe_shutdown_no_threads():
assert not daemon_thread_mock.join.called
async def test_deadlock_safe_shutdown():
async def test_deadlock_safe_shutdown() -> None:
"""Test we can shutdown without deadlock."""
normal_thread_mock = Mock(