mirror of
https://github.com/home-assistant/core.git
synced 2025-07-29 18:28:14 +02:00
Drop last bits of asyncio.coroutine (#39280)
This commit is contained in:
@ -12,11 +12,10 @@ from tests.async_mock import Mock, patch
|
||||
from tests.common import get_test_home_assistant
|
||||
|
||||
|
||||
def mock_process_creator(error: bool = False) -> asyncio.coroutine:
|
||||
def mock_process_creator(error: bool = False):
|
||||
"""Mock a coroutine that creates a process when yielded."""
|
||||
|
||||
@asyncio.coroutine
|
||||
def communicate() -> Tuple[bytes, bytes]:
|
||||
async def communicate() -> Tuple[bytes, bytes]:
|
||||
"""Mock a coroutine that runs a process when yielded.
|
||||
|
||||
Returns a tuple of (stdout, stderr).
|
||||
|
Reference in New Issue
Block a user