From d87e9bca53fc22f6b9c9363314a36b720dc47bd9 Mon Sep 17 00:00:00 2001 From: mikigo Date: Fri, 1 Nov 2024 14:20:43 +0800 Subject: [PATCH 1/2] Update check_test docstring to clarify state parameter Signed-off-by: mikigo --- avocado/core/result.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/avocado/core/result.py b/avocado/core/result.py index a1bb8f0520..dfd0b18ea8 100644 --- a/avocado/core/result.py +++ b/avocado/core/result.py @@ -100,7 +100,8 @@ def check_test(self, state): """ Called once for a test to check status and report. - :param test: A dict with test internal state + :param state: result of :class:`avocado.core.test.Test.get_state`. + :type state: dict """ status = state.get("status") if status == "PASS": From 46d0b6326502ecd28b6a684fe4a0015033995e08 Mon Sep 17 00:00:00 2001 From: mikigo Date: Fri, 1 Nov 2024 14:21:19 +0800 Subject: [PATCH 2/2] Remove unused 'option = None' initialization Signed-off-by: mikigo --- avocado/core/settings.py | 1 - 1 file changed, 1 deletion(-) diff --git a/avocado/core/settings.py b/avocado/core/settings.py index 7be0fe7ad0..b497bf0fe0 100644 --- a/avocado/core/settings.py +++ b/avocado/core/settings.py @@ -521,7 +521,6 @@ def add_argparser_to_option( "argument or be a positional argument" ) - option = None try: option = self._namespaces[namespace] except KeyError: