From c6d1f1ccc8b40c435d18ab359b73b42d44a6a415 Mon Sep 17 00:00:00 2001 From: Marc Mueller <30130371+cdce8p@users.noreply.github.com> Date: Tue, 26 Dec 2023 16:23:19 +0100 Subject: [PATCH] Fix pytest test collection warning (#106405) --- tests/helpers/test_deprecation.py | 2 ++ 1 file changed, 2 insertions(+) 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"