mirror of
https://github.com/home-assistant/core.git
synced 2025-07-29 18:28:14 +02:00
Enable Ruff B017 (#115335)
This commit is contained in:
@ -346,8 +346,9 @@ async def test_component_base_exception_setup(hass: HomeAssistant) -> None:
|
||||
|
||||
mock_integration(hass, MockModule("comp", setup=exception_setup))
|
||||
|
||||
with pytest.raises(BaseException):
|
||||
with pytest.raises(BaseException) as exc_info:
|
||||
await setup.async_setup_component(hass, "comp", {})
|
||||
assert str(exc_info.value) == "fail!"
|
||||
|
||||
assert "comp" not in hass.config.components
|
||||
|
||||
|
Reference in New Issue
Block a user