1
0
mirror of https://github.com/home-assistant/core.git synced 2025-04-29 19:57:52 +00:00

14 lines
252 B
Python

"""Test fixtures for the Logger component."""
import logging
import pytest
@pytest.fixture(autouse=True)
def restore_logging_class():
"""Restore logging class."""
klass = logging.getLoggerClass()
yield
logging.setLoggerClass(klass)