Fail tests if wrapped callbacks or coroutines throw (#35010)

This commit is contained in:
Erik Montnemery authored and GitHub committed 2020-05-06 14:14:57 -07:00
1 parent b35306052d
commit f1ecac92df
22 files changed
+156 -38

No files matched your search

+3
View File
@@ -3,6 +3,8 @@ import asyncio
import logging
import threading
import pytest
import homeassistant.util.logging as logging_util
@@ -65,6 +67,7 @@ async def test_async_handler_thread_log(loop):
assert queue.empty()
@pytest.mark.no_fail_on_log_exception
async def test_async_create_catching_coro(hass, caplog):
"""Test exception logging of wrapped coroutine."""