Disable gc in-between energy sensor tests (#88593)

This commit is contained in:
Erik Montnemery 2023-03-01 16:21:11 +01:00 committed by GitHub
parent 54de16875d
commit 09f1c2318d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 13 deletions

View File

@ -1,7 +1,6 @@
"""Test the Energy sensors."""
import copy
from datetime import timedelta
import gc
from typing import Any
from unittest.mock import patch
@ -33,18 +32,6 @@ from tests.components.recorder.common import async_wait_recording_done
from tests.typing import WebSocketGenerator
@pytest.fixture(autouse=True)
def garbage_collection():
"""Make sure garbage collection is run between all tests.
There are unknown issues with GC triggering during a test
case, leading to the test breaking down. Make sure we
clean up between each testcase to avoid this issue.
"""
yield
gc.collect()
@pytest.fixture
async def setup_integration(recorder_mock):
"""Set up the integration."""