diff --git a/tests/helpers/test_deprecation.py b/tests/helpers/test_deprecation.py index 8e776e98096..bd3546afb12 100644 --- a/tests/helpers/test_deprecation.py +++ b/tests/helpers/test_deprecation.py @@ -261,6 +261,8 @@ def test_deprecated_function_called_from_custom_integration( class TestDeprecatedConstantEnum(StrEnum): """Test deprecated constant enum.""" + __test__ = False # prevent test collection of class by pytest + TEST = "value"