From 61d64d2d599985b63435acab9af03cea584b7b9b Mon Sep 17 00:00:00 2001 From: Erik Date: Wed, 7 May 2025 09:17:02 +0200 Subject: [PATCH] Reset exceptions in update_coordinator tests --- tests/helpers/test_update_coordinator.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/helpers/test_update_coordinator.py b/tests/helpers/test_update_coordinator.py index 5fd9f9e39fd..9fc7c84e768 100644 --- a/tests/helpers/test_update_coordinator.py +++ b/tests/helpers/test_update_coordinator.py @@ -304,6 +304,7 @@ async def test_refresh_known_errors( assert crd.last_update_success is False assert isinstance(crd.last_exception, err_msg[1]) assert err_msg[2] in caplog.text + err_msg[0].__traceback__ = None async def test_refresh_fail_unknown( @@ -564,6 +565,7 @@ async def test_async_config_entry_first_refresh_failure( assert crd.last_update_success is False assert isinstance(crd.last_exception, err_msg[1]) assert err_msg[2] not in caplog.text + err_msg[0].__traceback__ = None @pytest.mark.parametrize( @@ -602,6 +604,7 @@ async def test_async_config_entry_first_refresh_failure_passed_through( assert crd.last_update_success is False assert isinstance(crd.last_exception, err_msg[1]) assert err_msg[2] not in caplog.text + err_msg[0].__traceback__ = None async def test_async_config_entry_first_refresh_success(hass: HomeAssistant) -> None: